mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 22:11:43 +00:00
- Removed duplicate autoskip code.
This commit is contained in:
parent
be3b84e751
commit
1721d70212
1 changed files with 8 additions and 3 deletions
|
@ -1096,6 +1096,11 @@ void WI_End ()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool WI_autoSkip()
|
||||||
|
{
|
||||||
|
return wi_autoadvance > 0 && bcnt > (wi_autoadvance * TICRATE);
|
||||||
|
}
|
||||||
|
|
||||||
void WI_initNoState ()
|
void WI_initNoState ()
|
||||||
{
|
{
|
||||||
state = NoState;
|
state = NoState;
|
||||||
|
@ -1114,7 +1119,7 @@ void WI_updateNoState ()
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
bool noauto = noautostartmap;
|
bool noauto = noautostartmap;
|
||||||
bool autoskip = (wi_autoadvance > 0 && bcnt > (wi_autoadvance * TICRATE));
|
bool autoskip = WI_autoSkip();
|
||||||
|
|
||||||
for (int i = 0; !noauto && i < MAXPLAYERS; ++i)
|
for (int i = 0; !noauto && i < MAXPLAYERS; ++i)
|
||||||
{
|
{
|
||||||
|
@ -1254,7 +1259,7 @@ void WI_updateDeathmatchStats ()
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
bool stillticking;
|
bool stillticking;
|
||||||
bool autoskip = (wi_autoadvance > 0 && bcnt > (wi_autoadvance * TICRATE));
|
bool autoskip = WI_autoSkip();
|
||||||
|
|
||||||
WI_updateAnimatedBack();
|
WI_updateAnimatedBack();
|
||||||
|
|
||||||
|
@ -1506,7 +1511,7 @@ void WI_updateNetgameStats ()
|
||||||
int i;
|
int i;
|
||||||
int fsum;
|
int fsum;
|
||||||
bool stillticking;
|
bool stillticking;
|
||||||
bool autoskip = (wi_autoadvance > 0 && bcnt > (wi_autoadvance * TICRATE));
|
bool autoskip = WI_autoSkip();
|
||||||
|
|
||||||
WI_updateAnimatedBack ();
|
WI_updateAnimatedBack ();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue