forked from 0ad/0ad
Observer fix for shared-dropsites, refs #3791.
This was SVN commit r17887.
This commit is contained in:
parent
541a5567d8
commit
bedce1e617
@ -961,7 +961,7 @@ var g_AllyEntityCommands =
|
||||
"share-dropsite": {
|
||||
"getInfo": function(entState)
|
||||
{
|
||||
if (!GetSimState().players[Engine.GetPlayerID()].hasSharedDropsites)
|
||||
if (Engine.GetPlayerID() == -1 || !GetSimState().players[Engine.GetPlayerID()].hasSharedDropsites)
|
||||
return false;
|
||||
if (!entState.resourceDropsite || !entState.resourceDropsite.sharable)
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user