0ad/source/simulation2
Vantha c7247936bf Introduce separate LosRevealWholeMapForAll flag
It was previously stored at the end of the array of per-player flags and
set by calling SetLosRevealWholeMap with the player ID -1. However, ever
since the introduction of observer mode in 883f307b40, -1 is the player
ID of observers everywhere else including for GetLosRevealWhole:
GetLosRevealWhole(-1) always returns true in order to reveal the map to
observers, however, the cinema manager, for example, called it meaning
to find out whether the whole map is revealed to all players.
To fix this and avoid confusion about this in the future, this patch
splits this flag from the per-player flag array and introduces new
functions to set and retrieve it.
2026-03-03 11:25:52 +01:00
..
components Introduce separate LosRevealWholeMapForAll flag 2026-03-03 11:25:52 +01:00
docs Remove UNUSED 2025-06-26 17:25:05 +02:00
helpers LosRevealAll -> LosRevealWholeMap 2026-03-03 11:25:52 +01:00
scripting Remove Script::CreateArray 2026-02-08 19:27:50 +01:00
serialization Remove ScriptTypes and ScriptExtraHeaders headers 2025-09-14 13:17:18 +02:00
system Remove g_GUI usage in simulation2/* 2026-01-23 21:05:18 +01:00
tests Remove LoadScripts from CSimualation2 2026-01-01 17:27:54 +01:00
MessageTypes.h Fix includes in source/simulation2 2025-08-08 07:10:11 +02:00
Simulation2.cpp Use std::optional for m_RejoinTestTurn 2026-02-08 19:56:01 +01:00
Simulation2.h Remove LoadScripts from CSimualation2 2026-01-01 17:27:54 +01:00
TypeList.h Store whether a player is activ in C++ 2025-01-05 19:57:12 +01:00