mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 19:01:50 +00:00
P_Ticker: Fix tracking Attacking modes
- SPB: The standard set-up has ATTACKING_TIME in addition to ATTACKING_SPB, so the _TIME check first prevented it from ever being ticked - SPB: Check for encoremode instead of ATTACKING_SPB, to cover Versus SPB as well - All Attacking modes: Check for != ATTACKING_NONE just in case we add other potential modeattacking configurations later
This commit is contained in:
parent
23e4df3c90
commit
ee41d309f5
1 changed files with 13 additions and 10 deletions
23
src/p_tick.c
23
src/p_tick.c
|
|
@ -1005,20 +1005,23 @@ void P_Ticker(boolean run)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attacking mode playtime
|
// Attacking mode playtime
|
||||||
if ((modeattacking & ATTACKING_TIME) != 0)
|
if (modeattacking != ATTACKING_NONE)
|
||||||
{
|
{
|
||||||
gamedata->timeattackingtotaltime++;
|
if (encoremode) // ((modeattacking & ATTACKING_SPB) != 0)
|
||||||
if (mapheader)
|
|
||||||
{
|
{
|
||||||
mapheader->records.timeattacktimeplayed++;
|
gamedata->spbattackingtotaltime++;
|
||||||
|
if (mapheader)
|
||||||
|
{
|
||||||
|
mapheader->records.spbattacktimeplayed++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
else
|
||||||
else if ((modeattacking & ATTACKING_SPB) != 0)
|
|
||||||
{
|
|
||||||
gamedata->spbattackingtotaltime++;
|
|
||||||
if (mapheader)
|
|
||||||
{
|
{
|
||||||
mapheader->records.spbattacktimeplayed++;
|
gamedata->timeattackingtotaltime++;
|
||||||
|
if (mapheader)
|
||||||
|
{
|
||||||
|
mapheader->records.timeattacktimeplayed++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue