parent
b8078deea8
commit
bee865416b
@ -152,7 +152,7 @@ function updateTimeNotifications()
|
||||
if (!n.players)
|
||||
{
|
||||
warn("notification has unknown player list. Text:\n"+n.message);
|
||||
continue
|
||||
continue;
|
||||
}
|
||||
if (n.players.indexOf(playerID) == -1)
|
||||
continue;
|
||||
|
@ -709,7 +709,7 @@ ProductionQueue.prototype.ProgressTimeout = function(data)
|
||||
if (!this.spawnNotified)
|
||||
{
|
||||
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);
|
||||
cmpGUIInterface.PushNotification(notification);
|
||||
this.spawnNotified = true;
|
||||
|
Loading…
Reference in New Issue
Block a user