0
0
Fork 0
mirror of https://git.do.srb2.org/STJr/SRB2.git synced 2025-04-18 00:11:48 +00:00

Merge branch 'mpspecfix2' into 'master'

Counting spheres (resolves ).

Closes 

See merge request 
This commit is contained in:
MascaraSnake 2019-11-28 13:54:47 -05:00
commit 546c54b390

View file

@ -476,11 +476,14 @@ static inline void P_DoSpecialStageStuff(void)
// Count up the rings of all the players and see if
// they've collected the required amount.
for (i = 0; i < MAXPLAYERS; i++)
if (playeringame[i] && players[i].nightstime)
if (playeringame[i])
{
tic_t oldnightstime = players[i].nightstime;
countspheres += players[i].spheres;
if (!oldnightstime)
continue;
// If in water, deplete timer 6x as fast.
if (players[i].mo->eflags & (MFE_TOUCHWATER|MFE_UNDERWATER) && !(players[i].powers[pw_shield] & SH_PROTECTWATER))
players[i].nightstime -= 5;