fixed bug with not mapping input actions to focussed player in team mode
authorHolger Schemel <info@artsoft.org>
Wed, 13 Feb 2019 00:02:09 +0000 (01:02 +0100)
committerHolger Schemel <info@artsoft.org>
Wed, 13 Feb 2019 00:02:09 +0000 (01:02 +0100)
src/game.c

index b68f6be1e470eb6295ba830bc6f8c2611fc4f6e2..ed560daf5257ca5b269cb707961fdbf5fb7687f3 100644 (file)
@@ -11471,7 +11471,7 @@ static void GameActionsExt(void)
       game.centered_player_nr != -1)
   {
     for (i = 0; i < MAX_PLAYERS; i++)
-      stored_player[i].effective_action =
+      stored_player[map_player_action[i]].effective_action =
        (i == game.centered_player_nr ? summarized_player_action : 0);
   }