Laserlicht vor 1 Jahr
Ursprung
Commit
fb980bdb74
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. 3 1
      client/eventsSDL/InputHandler.cpp

+ 3 - 1
client/eventsSDL/InputHandler.cpp

@@ -130,8 +130,10 @@ void InputHandler::handleCurrentEvent(const SDL_Event & current)
 void InputHandler::setCurrentInputModi(InputModi modi)
 {
 	if(currentInputModi != modi)
+	{
+		currentInputModi = modi;
 		GH.events().dispatchInputModiChanged(modi);
-	currentInputModi = modi;
+	}
 }
 
 InputModi InputHandler::getCurrentInputModi()