fix respawn time label

the server sends the respawn time in their context, which is network time
This commit is contained in:
Brian Lach
2023-04-29 15:17:23 -04:00
parent 04f729d450
commit 9e395c0310

View File

@@ -352,7 +352,7 @@ class DistributedTFPlayerOV(DistributedTFPlayer):
if self.respawnTime < 0:
text += TFLocalizer.RespawnWaitNewRound
else:
timeLeft = int(self.respawnTime - base.clockMgr.getTime())
timeLeft = int(self.respawnTime - base.clockMgr.getNetworkTime())
if timeLeft <= 0:
text += TFLocalizer.RespawnWait
else: