Changeset - r9204:0476178de20b
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2008-05-13 14:58:41
rubidium@openttd.org
(svn r13070) -Fix (r13069): do save before commit...
1 file changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/player_gui.cpp
Show inline comments
 
@@ -769,11 +769,11 @@ class SelectPlayerFaceWindow : public Wi
 
	}
 

	
 
public:
 
	SelectPlayerFaceWindow(const WindowDesc *desc, bool advanced) : Window(desc, 0)
 
	SelectPlayerFaceWindow(const WindowDesc *desc, PlayerID player, bool advanced) : Window(desc, player)
 
	{
 
		this->FindWindowPlacementAndResize(desc);
 
		this->caption_color = this->window_number;
 
		this->face = GetPlayer((PlayerID)this->window_number)->face;
 
		this->face = GetPlayer(player)->face;
 
		this->advanced = advanced;
 

	
 
		this->UpdateData();
 
@@ -1045,8 +1045,8 @@ static void DoSelectPlayerFace(PlayerID 
 
{
 
	if (!IsValidPlayer(player)) return;
 

	
 
	if (BringWindowToFrontById(WC_PLAYER_FACE, 0)) return;
 
	return SelectPlayerFaceWindow(adv ? &_select_player_face_adv_desc : &_select_player_face_desc, player, adv); // simple or advanced window
 
	if (BringWindowToFrontById(WC_PLAYER_FACE, player)) return;
 
	new SelectPlayerFaceWindow(adv ? &_select_player_face_adv_desc : &_select_player_face_desc, player, adv); // simple or advanced window
 
}
 

	
 

	
0 comments (0 inline, 0 general)