Skip to content

Commit

Permalink
DEBUG: do not crash out on debug builds when map doesn't load properl…
Browse files Browse the repository at this point in the history
…y, log error message instead. (#872)
  • Loading branch information
ciscon authored Nov 27, 2023
1 parent 022f78c commit fa5d11e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cmodel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1441,7 +1441,8 @@ cmodel_t *CM_LoadMap (char *name, qbool clientload, unsigned *checksum, unsigned
int filelen = 0;

if (map_name[0]) {
assert(!strcmp(name, map_name));
if (strcmp(name, map_name))
Con_Printf("CM_LoadMap: '%s' != '%s'\n", name, map_name);

if (checksum)
*checksum = map_checksum;
Expand Down

0 comments on commit fa5d11e

Please sign in to comment.