1
0
forked from mirrors/0ad

fix developper overlay in visual replay, patch by elexis, fixes #3435

This was SVN commit r17063.
This commit is contained in:
mimo
2015-09-23 20:28:22 +00:00
parent 1456db00fc
commit a68d5dae0d
2 changed files with 9 additions and 1 deletions
@@ -26,7 +26,12 @@ function reallyStartVisualReplay(replayDirectory)
Engine.SwitchGuiPage("page_loading.xml", { Engine.SwitchGuiPage("page_loading.xml", {
"attribs": Engine.GetReplayAttributes(replayDirectory), "attribs": Engine.GetReplayAttributes(replayDirectory),
"isNetworked" : false, "isNetworked" : false,
"playerAssignments": {}, "playerAssignments": {
"local":{
"name": translate("You"),
"player": -1
}
},
"savedGUIData": "", "savedGUIData": "",
"isReplay" : true "isReplay" : true
}); });
@@ -161,6 +161,9 @@ function init(initData, hotloadData)
} }
else // Needed for autostart loading option else // Needed for autostart loading option
{ {
if (g_IsReplay)
g_PlayerAssignments.local.player = -1;
g_Players = getPlayerData(null); g_Players = getPlayerData(null);
} }