parent
b8078deea8
commit
bee865416b
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user