mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
Merge branch 'master' of https://github.com/rheit/zdoom
This commit is contained in:
commit
244eaa99b3
6 changed files with 54 additions and 35 deletions
|
@ -473,6 +473,11 @@ static AMColorset AMMod;
|
||||||
static AMColorset AMModOverlay;
|
static AMColorset AMModOverlay;
|
||||||
|
|
||||||
|
|
||||||
|
void AM_ClearColorsets()
|
||||||
|
{
|
||||||
|
AMModOverlay.defined = false;
|
||||||
|
AMMod.defined = false;
|
||||||
|
}
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
|
|
@ -27,6 +27,7 @@ class FSerializer;
|
||||||
|
|
||||||
|
|
||||||
void AM_StaticInit();
|
void AM_StaticInit();
|
||||||
|
void AM_ClearColorsets(); // reset data for a restart.
|
||||||
|
|
||||||
// Called by main loop.
|
// Called by main loop.
|
||||||
bool AM_Responder (event_t* ev, bool last);
|
bool AM_Responder (event_t* ev, bool last);
|
||||||
|
|
|
@ -2592,14 +2592,16 @@ void D_DoomMain (void)
|
||||||
G_DeferedPlayDemo (v);
|
G_DeferedPlayDemo (v);
|
||||||
D_DoomLoop (); // never returns
|
D_DoomLoop (); // never returns
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
v = Args->CheckValue("-timedemo");
|
v = Args->CheckValue("-timedemo");
|
||||||
if (v)
|
if (v)
|
||||||
{
|
{
|
||||||
G_TimeDemo(v);
|
G_TimeDemo(v);
|
||||||
D_DoomLoop(); // never returns
|
D_DoomLoop(); // never returns
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
if (gameaction != ga_loadgame && gameaction != ga_loadgamehidecon)
|
if (gameaction != ga_loadgame && gameaction != ga_loadgamehidecon)
|
||||||
{
|
{
|
||||||
if (autostart || netgame)
|
if (autostart || netgame)
|
||||||
|
@ -2631,6 +2633,8 @@ void D_DoomMain (void)
|
||||||
|
|
||||||
atterm(D_QuitNetGame); // killough
|
atterm(D_QuitNetGame); // killough
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// let the renderer reinitialize some stuff if needed
|
// let the renderer reinitialize some stuff if needed
|
||||||
|
@ -2643,7 +2647,7 @@ void D_DoomMain (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
D_DoomLoop (); // this only returns if a 'restart' CCMD is given.
|
D_DoomLoop (); // this only returns if a 'restart' CCMD is given.
|
||||||
|
maxberestart:
|
||||||
//
|
//
|
||||||
// Clean up after a restart
|
// Clean up after a restart
|
||||||
//
|
//
|
||||||
|
@ -2654,6 +2658,7 @@ void D_DoomMain (void)
|
||||||
|
|
||||||
M_ClearMenus(); // close menu if open
|
M_ClearMenus(); // close menu if open
|
||||||
F_EndFinale(); // If an intermission is active, end it now
|
F_EndFinale(); // If an intermission is active, end it now
|
||||||
|
AM_ClearColorsets();
|
||||||
|
|
||||||
// clean up game state
|
// clean up game state
|
||||||
ST_Clear();
|
ST_Clear();
|
||||||
|
|
|
@ -178,8 +178,8 @@ void P_SetSlope (secplane_t *plane, bool setCeil, int xyangi, int zangi, const D
|
||||||
if (ib_compatflags & BCOMPATF_SETSLOPEOVERFLOW)
|
if (ib_compatflags & BCOMPATF_SETSLOPEOVERFLOW)
|
||||||
{
|
{
|
||||||
// We have to consider an integer multiplication overflow here.
|
// We have to consider an integer multiplication overflow here.
|
||||||
norm[0] = FixedToFloat(FloatToFixed(zang.Cos()) * FloatToFixed(xyang.Cos()));
|
norm[0] = FixedToFloat(FloatToFixed(zang.Cos()) * FloatToFixed(xyang.Cos())) / 65536.;
|
||||||
norm[1] = FixedToFloat(FloatToFixed(zang.Cos()) * FloatToFixed(xyang.Sin()));
|
norm[1] = FixedToFloat(FloatToFixed(zang.Cos()) * FloatToFixed(xyang.Sin())) / 65536.;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -1773,7 +1773,14 @@ void PO_Init (void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// clear all polyobj specials so that they do not obstruct using other lines.
|
||||||
|
for (int i = 0; i < numlines; i++)
|
||||||
|
{
|
||||||
|
if (lines[i].special == Polyobj_ExplicitLine || lines[i].special == Polyobj_StartLine)
|
||||||
|
{
|
||||||
|
lines[i].special = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
setwallyscale 717 front bot 1.090909
|
setwallyscale 717 front bot 1.090909
|
||||||
|
|
||||||
setslopeoverflow
|
setslopeoverflow
|
||||||
|
polyobj
|
||||||
}
|
}
|
||||||
|
|
||||||
B2D8DA03489D1C67F60DC87FBC4EA338 // map01 - Massmouth 2
|
B2D8DA03489D1C67F60DC87FBC4EA338 // map01 - Massmouth 2
|
||||||
|
|
Loading…
Reference in a new issue