Ticket #3435: t3435_fix_player_assignments_in_replays_v1.patch
File t3435_fix_player_assignments_in_replays_v1.patch, 1.4 KB (added by , 9 years ago) |
---|
-
binaries/data/mods/public/gui/replaymenu/replay_actions.js
function reallyStartVisualReplay(replayD 24 24 // TODO: enhancement: restore filter settings and selected replay when returning from the summary screen. 25 25 Engine.StartVisualReplay(replayDirectory); 26 26 Engine.SwitchGuiPage("page_loading.xml", { 27 27 "attribs": Engine.GetReplayAttributes(replayDirectory), 28 28 "isNetworked" : false, 29 "playerAssignments": {}, 29 "playerAssignments": { 30 "local":{ 31 "name": translate("You"), 32 "player": -1 33 } 34 }, 30 35 "savedGUIData": "", 31 36 "isReplay" : true 32 37 }); 33 38 } 34 39 -
binaries/data/mods/public/gui/session/session.js
function init(initData, hotloadData) 159 159 160 160 Engine.GetGUIObjectByName("gameSpeedButton").hidden = g_IsNetworked; 161 161 } 162 162 else // Needed for autostart loading option 163 163 { 164 if (g_IsReplay) 165 g_PlayerAssignments.local.player = -1; 166 164 167 g_Players = getPlayerData(null); 165 168 } 166 169 167 170 // Cache civ data 168 171 g_CivData = loadCivData();