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
|
@ -2196,8 +2196,6 @@ void P_LoadThingsOnly(void)
|
||||||
// Search through all the thinkers.
|
// Search through all the thinkers.
|
||||||
thinker_t *think;
|
thinker_t *think;
|
||||||
INT32 i, viewid = -1, centerid = -1; // for skyboxes
|
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
|
// check if these are any of the normal viewpoint/centerpoint mobjs in the level or not
|
||||||
if (skyboxmo[0] || skyboxmo[1])
|
if (skyboxmo[0] || skyboxmo[1])
|
||||||
|
@ -2218,11 +2216,8 @@ void P_LoadThingsOnly(void)
|
||||||
|
|
||||||
P_LevelInitStuff();
|
P_LevelInitStuff();
|
||||||
|
|
||||||
P_PrepareRawThings(vth->data);
|
|
||||||
P_LoadThings(true);
|
P_LoadThings(true);
|
||||||
|
|
||||||
vres_Free(virt);
|
|
||||||
|
|
||||||
// restore skybox viewpoint/centerpoint if necessary, set them to defaults if we can't do that
|
// restore skybox viewpoint/centerpoint if necessary, set them to defaults if we can't do that
|
||||||
skyboxmo[0] = skyboxviewpnts[(viewid >= 0) ? viewid : 0];
|
skyboxmo[0] = skyboxviewpnts[(viewid >= 0) ? viewid : 0];
|
||||||
skyboxmo[1] = skyboxcenterpnts[(centerid >= 0) ? centerid : 0];
|
skyboxmo[1] = skyboxcenterpnts[(centerid >= 0) ? centerid : 0];
|
||||||
|
|
Loading…
Reference in a new issue