fix numerous UI elements using is_ownfor

This commit is contained in:
Eclipse/Druss99
2025-10-14 21:42:40 -04:00
committed by Raffson
parent 624f2a00fd
commit 3d788e3ae8
12 changed files with 33 additions and 21 deletions

View File

@@ -195,7 +195,9 @@ class QGroundObjectMenu(QDialog):
lambda degrees: self.rotate_tgo(Heading(degrees))
)
self.orientationBoxLayout.addWidget(self.headingSelector)
can_adjust_heading = self.cp.is_friendly(to_player=self.game_model.is_ownfor)
can_adjust_heading = self.cp.is_friendly(
to_player=Player.BLUE if self.game_model.is_ownfor else Player.RED
)
if can_adjust_heading:
self.head_to_conflict_button = QPushButton("Head to conflict")
heading = (