Laserlicht il y a 2 ans
Parent
commit
02c82cb35b
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      server/processors/PlayerMessageProcessor.cpp

+ 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;
 }