--- a/rts/Game/Game.cpp +++ b/rts/Game/Game.cpp @@ -926,6 +926,16 @@ // Browser practice supplies its own UI. Native scenario widgets would // otherwise pause at an invisible mission briefing on frame zero. if (std::getenv("WEBBAR_PLAYABLE") != nullptr) { + // Original pinned BAR LuaUI/main.lua initializes Gaia here. This + // playable branch replaces LuaUI, so retain its unsynced default + // before the original visual widgets and initial unit events. + const int gaiaTeamID = teamHandler.GaiaTeamID(); + if (teamHandler.IsValidTeam(gaiaTeamID)) { + CTeam* gaia = teamHandler.Team(gaiaTeamID); + for (int component = 0; component < 3; ++component) + gaia->color[component] = static_cast(0.3f * 255.0f); + gaia->color[3] = 255; + } // Initialize the replacement original visual widgets at the native // LuaUI phase, before GamePreload creates initial units/events. if (std::getenv("WEBBAR_NATIVE_DISTORTION_VBO") != nullptr) PrepareWebbarNativeBeams();