skip rechecking for horizonlines when reloading gamestate
map remains the same during desynch, so safe some time
This commit is contained in:
1 parent
c722523d40
commit
1c8a0006f0
3 files changed
+5
-5
No files matched your search
@@ -5742,7 +5742,7 @@ static void HWR_CheckForHorizonLines(void)
|
||||
}
|
||||
}
|
||||
|
||||
void HWR_LoadLevel(void)
|
||||
void HWR_LoadLevel(boolean reloadinggamestate)
|
||||
{
|
||||
HWR_CreatePlanePolygons((INT32)numnodes - 1);
|
||||
|
||||
@@ -5750,7 +5750,8 @@ void HWR_LoadLevel(void)
|
||||
HWR_ClearSkyDome();
|
||||
HWR_BuildSkyDome();
|
||||
|
||||
HWR_CheckForHorizonLines();
|
||||
if (!reloadinggamestate)
|
||||
HWR_CheckForHorizonLines();
|
||||
|
||||
if (HWR_ShouldUsePaletteRendering())
|
||||
HWR_SetMapPalette();
|
||||
|
||||
+1
-2
@@ -3081,9 +3081,8 @@ boolean P_SetupLevel(boolean fromnetsave, boolean reloadinggamestate)
|
||||
if (rendermode == render_opengl)
|
||||
{
|
||||
HWR_FreeExtraSubsectors();
|
||||
|
||||
// Create plane polygons.
|
||||
HWR_LoadLevel();
|
||||
HWR_LoadLevel(reloadinggamestate);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
+1
-1
@@ -63,7 +63,7 @@ void P_SetupLevelSky(INT32 skynum, boolean global);
|
||||
boolean P_SetupLevel(boolean fromnetsave, boolean reloadinggamestate);
|
||||
|
||||
#ifdef HWRENDER
|
||||
void HWR_LoadLevel(void);
|
||||
void HWR_LoadLevel(boolean reloadinggamestate);
|
||||
#endif
|
||||
|
||||
boolean P_AddWadFile(const char *wadfilename, boolean local);
|
||||
|
||||
Reference in new issue
Block a user