mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-04-22 09:40:46 +00:00
Fix gcc 8.x error about truncated lumpname with unexpected map number.
This commit is contained in:
parent
61d4d6dd36
commit
49165d1078
1 changed files with 2 additions and 2 deletions
|
@ -656,9 +656,9 @@ P_SetupLevel
|
|||
if ( ::g->gamemode == commercial)
|
||||
{
|
||||
if (map<10)
|
||||
sprintf (lumpname,"map0%i", map);
|
||||
sprintf (lumpname, "map0%i", map % 100);
|
||||
else
|
||||
sprintf (lumpname,"map%i", map);
|
||||
sprintf (lumpname, "map%i", map % 100);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue