Laserlicht 2 vuotta sitten
vanhempi
sitoutus
02c82cb35b
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  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;
 }