Skip to content
Permalink
Browse files

game: removed unecessary game type check, refs #1381

* SW round 2 always happens on the same map, so slow connection never
happens in this case.
* sess.time_* are not forcefully reset anymore by SR code in SW mode,
so this condition will not trigger anyway
  • Loading branch information
rmarquis committed Jan 9, 2020
1 parent 371fc36 commit f81b5e96e0b0ea96fbfcf94d63209618c6d3e10f
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/game/g_active.c
@@ -2106,8 +2106,7 @@ void ClientEndFrame(gentity_t *ent)
{
// ensure time played is always smaller or equal than time spent in teams
// work around for unreset data of slow connecters
if ((ent->client->sess.time_played > (ent->client->sess.time_axis + ent->client->sess.time_allies)) &&
!(g_gametype.integer == GT_WOLF_STOPWATCH && g_currentRound.integer == 1))
if (ent->client->sess.time_played > (ent->client->sess.time_axis + ent->client->sess.time_allies))
{
ent->client->sess.time_played = 0;
}

0 comments on commit f81b5e9

Please sign in to comment.
You can’t perform that action at this time.