mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 03:12:00 -04:00
always define a "next" map for a UMAPINFO entry (#833)
* always define a "next" map for a UMAPINFO entry * use MAPNAME() * cosmetic change
This commit is contained in:
parent
7df1465e64
commit
e4ecf2d163
@ -22,6 +22,7 @@
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#include "doomstat.h"
|
||||
#include "info.h"
|
||||
#include "i_system.h"
|
||||
#include "m_misc2.h"
|
||||
@ -667,6 +668,15 @@ static int ParseStandardProperty(u_scanner_t* s, mapentry_t *mape)
|
||||
U_GetNextToken(s, true);
|
||||
} while (U_CheckToken(s, ','));
|
||||
|
||||
if (!mape->nextmap[0] && !mape->endpic[0])
|
||||
{
|
||||
int ep, map;
|
||||
|
||||
G_ValidateMapName(mape->mapname, &ep, &map);
|
||||
|
||||
strcpy(mape->nextmap, MAPNAME(ep, map + 1));
|
||||
}
|
||||
|
||||
free(pname);
|
||||
return status;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user