Update _teamgame.py

This commit is contained in:
Sasha 2023-12-24 11:35:54 +09:00 committed by GitHub
parent eac3418972
commit e8e0cb8a85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,10 @@ class TeamGameActivity(GameActivity[PlayerT, TeamT]):
# On the first game, show the controls UI momentarily.
# (unless we're being run in co-op mode, in which case we leave
# it up to them)
if not isinstance(self.session, CoopSession) or getattr(self, 'show_controls_guide', True):
if (
not isinstance(self.session, CoopSession)
and getattr(self, 'show_controls_guide', True)
):
attrname = '_have_shown_ctrl_help_overlay'
if not getattr(self.session, attrname, False):
delay = 4.0