forked from 0ad/0ad
Small fixes.
This was SVN commit r16552.
This commit is contained in:
parent
a8c44d947c
commit
535d612e06
@ -220,12 +220,12 @@ function init(initData, hotloadData)
|
||||
Engine.GetGUIObjectByName("menuExitButton").enabled = false;
|
||||
|
||||
if (hotloadData)
|
||||
{
|
||||
g_Selection.selected = hotloadData.selection;
|
||||
}
|
||||
|
||||
// Starting for the first time:
|
||||
initMusic();
|
||||
if (!g_IsObserver){
|
||||
if (!g_IsObserver)
|
||||
{
|
||||
var civMusic = g_CivData[g_Players[Engine.GetPlayerID()].civ].Music;
|
||||
global.music.storeTracks(civMusic);
|
||||
}
|
||||
@ -247,7 +247,8 @@ function init(initData, hotloadData)
|
||||
function selectViewPlayer(playerID)
|
||||
{
|
||||
Engine.SetPlayerID(playerID);
|
||||
if (playerID > 0) {
|
||||
if (playerID > 0)
|
||||
{
|
||||
Engine.GetGUIObjectByName("civIcon").sprite = "stretched:" + g_CivData[g_Players[playerID].civ].Emblem;
|
||||
Engine.GetGUIObjectByName("civIcon").tooltip = g_CivData[g_Players[playerID].civ].Name;
|
||||
}
|
||||
|
@ -181,9 +181,7 @@ void CGUIString::GenerateTextCall(const CGUI *pGUI,
|
||||
Feedback.m_TextCalls.push_back(TextCall);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
LOGERROR("Encountered unexpected tag applied to text");
|
||||
break;
|
||||
NODEFAULT;
|
||||
}
|
||||
}
|
||||
else if (_to > _from && !Feedback.m_NewLine)
|
||||
|
Loading…
Reference in New Issue
Block a user