mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-28 10:03:15 +08:00
Fixed respawn icons
This commit is contained in:
parent
c7b2315c8b
commit
c2d017510c
@ -45,6 +45,7 @@ class RespawnIcon:
|
||||
"""
|
||||
# FIXME; tidy up
|
||||
# pylint: disable=too-many-locals
|
||||
|
||||
activity = ba.getactivity()
|
||||
self._visible = True
|
||||
if isinstance(ba.getsession(), ba.TeamsSession):
|
||||
@ -158,7 +159,7 @@ class RespawnIcon:
|
||||
|
||||
def _update(self) -> None:
|
||||
remaining = int(
|
||||
round(self._respawn_time -
|
||||
round(int(1000.0 * self._respawn_time) -
|
||||
ba.time(timeformat=ba.TimeFormat.MILLISECONDS)) / 1000.0)
|
||||
if remaining > 0:
|
||||
assert self._text is not None
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user