forked from 0ad/0ad
Fixes incorrect test for command debugging
This was SVN commit r12446.
This commit is contained in:
parent
de38f9ef9a
commit
065a3e093b
@ -131,7 +131,7 @@ function ProcessCommand(player, cmd)
|
||||
|
||||
case "returnresource":
|
||||
// Check dropsite is owned by player
|
||||
if (g_DebugCommands && IsOwnedByPlayer(player, cmd.target))
|
||||
if (g_DebugCommands && !IsOwnedByPlayer(player, cmd.target))
|
||||
{
|
||||
// This check is for debugging only!
|
||||
warn("Invalid command: dropsite is not owned by player "+player+": "+uneval(cmd));
|
||||
|
Loading…
Reference in New Issue
Block a user