Skip to content

Conversation

@Stubbjax
Copy link

Fixes #1859

This change adjusts various conditional behaviour concerning the currently observed player to utilise the new utility logic where applicable.

@Stubbjax Stubbjax self-assigned this Nov 15, 2025
@Stubbjax Stubbjax added Minor Severity: Minor < Major < Critical < Blocker Gen Relates to Generals ZH Relates to Zero Hour Refactor Edits the code with insignificant behavior changes, is never user facing labels Nov 15, 2025
Copy link

@xezon xezon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you also make a pass on getCurrentlyViewedPlayerRelationship and getCurrentlyViewedPlayerSide?

@xezon xezon added Design Is a matter of game design ThisProject The issue was introduced by this project, or this task is specific to this project and removed Refactor Edits the code with insignificant behavior changes, is never user facing labels Nov 17, 2025
@Stubbjax
Copy link
Author

Did you also make a pass on getCurrentlyViewedPlayerRelationship and getCurrentlyViewedPlayerSide?

Regarding getCurrentlyViewedPlayerRelationship:

There is a single usage of this function in the radar logic, which I believe is valid. We do not want to consider the relationship of a defeated player when determining whether to show stealthed units on the radar. If the player is not observing anyone in particular, we want a NEUTRAL relationship rather than the local player's.

Regarding getCurrentlyViewedPlayerSide:

There is a single usage of this function in the EVA logic. It looks like this is not needed as the logic falls back to the local player's side. I shall update this.

Copy link

@xezon xezon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks proper.

@xezon xezon merged commit 8d675a8 into TheSuperHackers:main Nov 25, 2025
23 checks passed
@Stubbjax Stubbjax deleted the update-observer-logic branch November 26, 2025 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Design Is a matter of game design Gen Relates to Generals Minor Severity: Minor < Major < Critical < Blocker ThisProject The issue was introduced by this project, or this task is specific to this project ZH Relates to Zero Hour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Review observer and look-at player features

2 participants