2
0
Laserlicht 2 жил өмнө
parent
commit
02c82cb35b

+ 3 - 3
server/processors/PlayerMessageProcessor.cpp

@@ -437,13 +437,13 @@ bool PlayerMessageProcessor::handleCheatCode(const std::string & cheat, PlayerCo
 				executeCheatCode(cheatName, i.first, h->id, parameters);
 	}
 
-	if (!playerTargetedCheat)
-		executeCheatCode(cheatName, player, currObj, words);
-
 	PlayerCheated pc;
 	pc.player = player;
 	gameHandler->sendAndApply(&pc);
 	
+	if (!playerTargetedCheat)
+		executeCheatCode(cheatName, player, currObj, words);
+	
 	return true;
 }