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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user