Changeset - r9332:924f55b67052
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2008-05-23 22:55:32
rubidium@openttd.org
(svn r13224) -Fix (r13107): set the location of the old SelectPlayerFaceWindow when switching from simple to advanced or vice versa instead of letting the new window popup somewhere 'randomly'.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/player_gui.cpp
Show inline comments
 
@@ -755,7 +755,7 @@ class SelectPlayerFaceWindow : public Wi
 
	}
 

	
 
public:
 
	SelectPlayerFaceWindow(const WindowDesc *desc, Window *parent, bool advanced) : Window(desc, parent->window_number)
 
	SelectPlayerFaceWindow(const WindowDesc *desc, Window *parent, bool advanced, int top, int left) : Window(desc, parent->window_number)
 
	{
 
		this->parent = parent;
 
		this->FindWindowPlacementAndResize(desc);
 
@@ -1032,7 +1032,7 @@ static void DoSelectPlayerFace(Window *p
 
	if (!IsValidPlayer((PlayerID)parent->window_number)) return;
 

	
 
	if (BringWindowToFrontById(WC_PLAYER_FACE, parent->window_number)) return;
 
	new SelectPlayerFaceWindow(adv ? &_select_player_face_adv_desc : &_select_player_face_desc, parent, adv); // simple or advanced window
 
	new SelectPlayerFaceWindow(adv ? &_select_player_face_adv_desc : &_select_player_face_desc, parent, adv, top, left); // simple or advanced window
 
}
 

	
 

	
0 comments (0 inline, 0 general)