fixed network games, part 3: enabled mapping input to reassigned players
authorHolger Schemel <info@artsoft.org>
Fri, 18 May 2018 08:39:00 +0000 (10:39 +0200)
committerHolger Schemel <info@artsoft.org>
Fri, 18 May 2018 08:39:00 +0000 (10:39 +0200)
commitfa2828673ea52a8b0419eb8e57b95df6c8ff29b2
tree2b4b1b5c57df48c6e15443b66d7b480d50d3d615
parentc3efcbe424037ee1c2ec2d6e22ecfea4de589c47
fixed network games, part 3: enabled mapping input to reassigned players

Before this change, player input from connected network players was
only allowed for active players. However, the old code did not take
into account that players may have been reassigned to other players
in the level playfield, so their input actions have to be mapped to
that different player.

This change accepts input actions for all players, and later maps
them to the finally assigned player in the game.
src/network.c