Fix gcc 8.x error about truncated lumpname with unexpected map number.

This commit is contained in:
vloup 2018-09-30 22:01:53 +02:00
parent 61d4d6dd36
commit 49165d1078

View file

@ -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
{