mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-01 00:41:16 +00:00
Fix an error that used map ID when lumpname is better for debugging
This commit is contained in:
parent
89a22783b6
commit
959bb14f59
1 changed files with 11 additions and 3 deletions
|
|
@ -314,11 +314,19 @@ boolean P_IsDegeneratedTubeWaypointSequence(UINT8 sequence)
|
|||
FUNCNORETURN static ATTRNORETURN void CorruptMapError(const char *msg)
|
||||
{
|
||||
// don't use va() because the calling function probably uses it
|
||||
char mapnum[10];
|
||||
char mapname[MAXMAPLUMPNAME];
|
||||
|
||||
sprintf(mapnum, "%hd", gamemap);
|
||||
if (gamemap > 0 && gamemap <= nummapheaders && mapheaderinfo[gamemap-1])
|
||||
{
|
||||
sprintf(mapname, "%s", mapheaderinfo[gamemap-1]->lumpname);
|
||||
}
|
||||
else
|
||||
{
|
||||
sprintf(mapname, "ID %d", gamemap-1);
|
||||
}
|
||||
|
||||
CON_LogMessage("Map ");
|
||||
CON_LogMessage(mapnum);
|
||||
CON_LogMessage(mapname);
|
||||
CON_LogMessage(" is corrupt: ");
|
||||
CON_LogMessage(msg);
|
||||
CON_LogMessage("\n");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue