Skip to content
Snippets Groups Projects
Commit ee41d309 authored by toaster's avatar toaster
Browse files

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
parent 23e4df3c
No related branches found
No related tags found
No related merge requests found
......@@ -1005,20 +1005,23 @@ void P_Ticker(boolean run)
}
// Attacking mode playtime
if ((modeattacking & ATTACKING_TIME) != 0)
if (modeattacking != ATTACKING_NONE)
{
gamedata->timeattackingtotaltime++;
if (mapheader)
if (encoremode) // ((modeattacking & ATTACKING_SPB) != 0)
{
mapheader->records.timeattacktimeplayed++;
gamedata->spbattackingtotaltime++;
if (mapheader)
{
mapheader->records.spbattacktimeplayed++;
}
}
}
else if ((modeattacking & ATTACKING_SPB) != 0)
{
gamedata->spbattackingtotaltime++;
if (mapheader)
else
{
mapheader->records.spbattacktimeplayed++;
gamedata->timeattackingtotaltime++;
if (mapheader)
{
mapheader->records.timeattacktimeplayed++;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment