Rename P_LoadThingsOnly to P_RespawnThings to make it clearer that it doesn't actually reload the things from the file, it just respawns them.
This commit is contained in:
parent
3971067cf3
commit
5590343043
|
@ -2965,7 +2965,7 @@ void G_DoReborn(INT32 playernum)
|
||||||
}
|
}
|
||||||
if (!countdowntimeup && (mapheaderinfo[gamemap-1]->levelflags & LF_NORELOAD))
|
if (!countdowntimeup && (mapheaderinfo[gamemap-1]->levelflags & LF_NORELOAD))
|
||||||
{
|
{
|
||||||
P_LoadThingsOnly();
|
P_RespawnThings();
|
||||||
|
|
||||||
for (i = 0; i < MAXPLAYERS; i++)
|
for (i = 0; i < MAXPLAYERS; i++)
|
||||||
{
|
{
|
||||||
|
|
|
@ -2206,12 +2206,8 @@ static void P_InitLevelSettings(void)
|
||||||
CV_SetValue(&cv_analog2, true);
|
CV_SetValue(&cv_analog2, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
// Respawns all the mapthings and mobjs in the map from the already loaded map data.
|
||||||
// P_LoadThingsOnly
|
void P_RespawnThings(void)
|
||||||
//
|
|
||||||
// "Reloads" a level, but only reloads all of the mobjs.
|
|
||||||
//
|
|
||||||
void P_LoadThingsOnly(void)
|
|
||||||
{
|
{
|
||||||
// Search through all the thinkers.
|
// Search through all the thinkers.
|
||||||
thinker_t *think;
|
thinker_t *think;
|
||||||
|
|
|
@ -96,7 +96,7 @@ void P_SetupLevelSky(INT32 skynum, boolean global);
|
||||||
#ifdef SCANTHINGS
|
#ifdef SCANTHINGS
|
||||||
void P_ScanThings(INT16 mapnum, INT16 wadnum, INT16 lumpnum);
|
void P_ScanThings(INT16 mapnum, INT16 wadnum, INT16 lumpnum);
|
||||||
#endif
|
#endif
|
||||||
void P_LoadThingsOnly(void);
|
void P_RespawnThings(void);
|
||||||
boolean P_LoadLevel(boolean fromnetsave);
|
boolean P_LoadLevel(boolean fromnetsave);
|
||||||
boolean P_AddWadFile(const char *wadfilename);
|
boolean P_AddWadFile(const char *wadfilename);
|
||||||
boolean P_RunSOC(const char *socfilename);
|
boolean P_RunSOC(const char *socfilename);
|
||||||
|
|
Loading…
Reference in a new issue