1
0
forked from 0ad/0ad

Fixes small issues in 81d1f5f71f.

This was SVN commit r15398.
This commit is contained in:
Yves 2014-06-19 18:50:41 +00:00
parent b8078deea8
commit bee865416b
2 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ function updateTimeNotifications()
if (!n.players) if (!n.players)
{ {
warn("notification has unknown player list. Text:\n"+n.message); warn("notification has unknown player list. Text:\n"+n.message);
continue continue;
} }
if (n.players.indexOf(playerID) == -1) if (n.players.indexOf(playerID) == -1)
continue; continue;

View File

@ -709,7 +709,7 @@ ProductionQueue.prototype.ProgressTimeout = function(data)
if (!this.spawnNotified) if (!this.spawnNotified)
{ {
var cmpPlayer = QueryOwnerInterface(this.entity, IID_Player); var cmpPlayer = QueryOwnerInterface(this.entity, IID_Player);
var notification = {"player": cmpPlayer.GetPlayerID(), "message": "Can't find free space to spawn trained units" }; var notification = {"players": [cmpPlayer.GetPlayerID()], "message": "Can't find free space to spawn trained units" };
var cmpGUIInterface = Engine.QueryInterface(SYSTEM_ENTITY, IID_GuiInterface); var cmpGUIInterface = Engine.QueryInterface(SYSTEM_ENTITY, IID_GuiInterface);
cmpGUIInterface.PushNotification(notification); cmpGUIInterface.PushNotification(notification);
this.spawnNotified = true; this.spawnNotified = true;