mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 09:11:48 +00:00
Don't reload mapthings in P_LoadThingsOnly() as they should no longer be modified past the mapload procedure.
This commit is contained in:
parent
d6a86c37b2
commit
9a9f72f598
1 changed files with 0 additions and 5 deletions
|
@ -2196,8 +2196,6 @@ void P_LoadThingsOnly(void)
|
|||
// Search through all the thinkers.
|
||||
thinker_t *think;
|
||||
INT32 i, viewid = -1, centerid = -1; // for skyboxes
|
||||
virtres_t* virt = vres_GetMap(lastloadedmaplumpnum);
|
||||
virtlump_t* vth = vres_Find(virt, "THINGS");
|
||||
|
||||
// check if these are any of the normal viewpoint/centerpoint mobjs in the level or not
|
||||
if (skyboxmo[0] || skyboxmo[1])
|
||||
|
@ -2218,11 +2216,8 @@ void P_LoadThingsOnly(void)
|
|||
|
||||
P_LevelInitStuff();
|
||||
|
||||
P_PrepareRawThings(vth->data);
|
||||
P_LoadThings(true);
|
||||
|
||||
vres_Free(virt);
|
||||
|
||||
// restore skybox viewpoint/centerpoint if necessary, set them to defaults if we can't do that
|
||||
skyboxmo[0] = skyboxviewpnts[(viewid >= 0) ? viewid : 0];
|
||||
skyboxmo[1] = skyboxcenterpnts[(centerid >= 0) ? centerid : 0];
|
||||
|
|
Loading…
Reference in a new issue