equal
deleted
inserted
replaced
42 * @param p1 player to set to |
42 * @param p1 player to set to |
43 * @param p2 is -1 or +1 (down/up) |
43 * @param p2 is -1 or +1 (down/up) |
44 */ |
44 */ |
45 static int32 ClickChangePlayerCheat(int32 p1, int32 p2) |
45 static int32 ClickChangePlayerCheat(int32 p1, int32 p2) |
46 { |
46 { |
47 while (IsValidPlayer((PlayerID)p1)) { |
47 while (IsValidPlayerID((PlayerID)p1)) { |
48 if (_players[p1].is_active) { |
48 if (_players[p1].is_active) { |
49 SetLocalPlayer((PlayerID)p1); |
49 SetLocalPlayer((PlayerID)p1); |
50 |
50 |
51 MarkWholeScreenDirty(); |
51 MarkWholeScreenDirty(); |
52 return _local_player; |
52 return _local_player; |