mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-05 07:51:42 +00:00
Clean up overzealous time check
This commit is contained in:
parent
f4588d50b0
commit
b312377800
1 changed files with 3 additions and 13 deletions
16
src/p_user.c
16
src/p_user.c
|
@ -863,7 +863,6 @@ void P_NightserizePlayer(player_t *player, INT32 nighttime)
|
|||
|
||||
for (i = 0; i < MAXPLAYERS; i++)
|
||||
{
|
||||
tic_t marebegunat;
|
||||
if (!playeringame[i] || !players[i].mo || players[i].spectator)
|
||||
continue;
|
||||
|
||||
|
@ -885,12 +884,8 @@ void P_NightserizePlayer(player_t *player, INT32 nighttime)
|
|||
P_AddPlayerScore(&players[i], (players[i].spheres) * 50);
|
||||
}
|
||||
|
||||
marebegunat = player->marebegunat;
|
||||
if (marebegunat > INT32_MAX)
|
||||
marebegunat = 0;
|
||||
|
||||
// Add score to leaderboards now
|
||||
player->lastmaretime = leveltime - marebegunat;
|
||||
player->lastmaretime = leveltime - player->marebegunat;
|
||||
G_AddTempNightsRecords(player, players[i].marescore, player->lastmaretime, players[i].mare + 1);
|
||||
|
||||
// transfer scores anyway
|
||||
|
@ -904,7 +899,6 @@ void P_NightserizePlayer(player_t *player, INT32 nighttime)
|
|||
}
|
||||
else if (oldmare != player->mare)
|
||||
{
|
||||
tic_t marebegunat;
|
||||
/// \todo Handle multi-mare special stages.
|
||||
// Spheres bonus
|
||||
P_AddPlayerScore(player, (player->spheres) * 50);
|
||||
|
@ -916,13 +910,9 @@ void P_NightserizePlayer(player_t *player, INT32 nighttime)
|
|||
player->textvar = NTV_BONUSTIMEEND; // Score and grades
|
||||
player->finishedspheres = (INT16)(player->spheres);
|
||||
player->finishedrings = (INT16)(player->rings);
|
||||
|
||||
marebegunat = player->marebegunat;
|
||||
if (marebegunat > INT32_MAX)
|
||||
marebegunat = 0;
|
||||
|
||||
|
||||
// Add score to temp leaderboards
|
||||
player->lastmaretime = leveltime - marebegunat;
|
||||
player->lastmaretime = leveltime - player->marebegunat;
|
||||
G_AddTempNightsRecords(player, player->marescore, player->lastmaretime, (UINT8)(oldmare + 1));
|
||||
|
||||
// Starting a new mare, transfer scores
|
||||
|
|
Loading…
Reference in a new issue