diff --git a/src/u_mapinfo.c b/src/u_mapinfo.c index b1eb378b..65cf8909 100644 --- a/src/u_mapinfo.c +++ b/src/u_mapinfo.c @@ -22,6 +22,7 @@ #include #include +#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; }