1
0
forked from 0ad/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

View File

@ -26,7 +26,12 @@ function reallyStartVisualReplay(replayDirectory)
Engine.SwitchGuiPage("page_loading.xml", {
"attribs": Engine.GetReplayAttributes(replayDirectory),
"isNetworked" : false,
"playerAssignments": {},
"playerAssignments": {
"local":{
"name": translate("You"),
"player": -1
}
},
"savedGUIData": "",
"isReplay" : true
});

View File

@ -161,6 +161,9 @@ function init(initData, hotloadData)
}
else // Needed for autostart loading option
{
if (g_IsReplay)
g_PlayerAssignments.local.player = -1;
g_Players = getPlayerData(null);
}