mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-14 01:33:29 +00:00
Observer fix for shared-dropsites, refs #3791.
This was SVN commit r17887.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user