File diff r5375:772a1c1f8fa4 → r5376:226f4edfd4b1
misc_gui.c
Show inline comments
 
@@ -1644,13 +1644,14 @@ static int32 ClickMoneyCheat(int32 p1, i
 

	
 
// p1 player to set to, p2 is -1 or +1 (down/up)
 
static int32 ClickChangePlayerCheat(int32 p1, int32 p2)
 
{
 
	while (IsValidPlayer((PlayerID)p1)) {
 
		if (_players[p1].is_active) {
 
			_local_player = (PlayerID)p1;
 
			SetLocalPlayer((PlayerID)p1);
 

	
 
			MarkWholeScreenDirty();
 
			return _local_player;
 
		}
 
		p1 += p2;
 
	}