Fixes incorrect test for command debugging

This was SVN commit r12446.
This commit is contained in:
historic_bruno 2012-08-16 02:29:08 +00:00
parent de38f9ef9a
commit 065a3e093b

View File

@ -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));