Opponent badge follows the day; Table and Stärken at the national desk
- Desktop: the opponent's badge sheet was loaded once when the screen
was built and kept while the state advanced, so the index of the new
opponent picked a badge from the old sheet (a foreign club's logo, the
wrong club for RB Leipzig). It is reloaded with every new state.
- National desk: the desk keeps the home club's key per manager (for
the hand-back), while Table, Stärken, Other games and the other pages
carry the identity of the runtime club (the national team). The
controller and flow compared the two and refused ("invalid Table
dispatch manager identity", "stale desktop identity"). DeskState now
gives session_identity_key() and the comparisons use it.
Refs #74.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7cfc8267b6
commit
b8a37353cc
5 files changed
+33
-14
No files matched your search
@@ -63,6 +63,15 @@ struct DeskState {
|
||||
// In a multiplayer career the visible national desk has only the coach in slot 0.
|
||||
std::vector<DeskManagerIdentity> national_return_roster;
|
||||
bool national_team = false;
|
||||
// Stable name-pool identity of the runtime club (GameState::club_ids): at the national desk that of
|
||||
// the national team, whereas managers[slot].club_identity_key keeps the home club for the hand-back.
|
||||
int runtime_club_identity = -1;
|
||||
// The identity the session's pages carry for this desk's manager (Table, Stärken, ...): the runtime
|
||||
// club's own identity, so at the national desk that of the national team.
|
||||
int session_identity_key(size_t slot) const {
|
||||
return national_team && int(slot) == manager_slot && runtime_club_identity >= 0
|
||||
? runtime_club_identity : managers.at(slot).club_identity_key;
|
||||
}
|
||||
// SwapManagerSlots2 temporary coach assignment (CoachActive). This can make
|
||||
// a league-only, single-manager career temporarily project team 0x165.
|
||||
bool national_coach_takeover = false;
|
||||
|
||||
Reference in new issue
Block a user