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