(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'.
authorrubidium
Fri, 23 May 2008 22:55:32 +0000
changeset 9332 9c18d6becd68
parent 9331 12b901111248
child 9333 2da01b3b71d8
(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'.
src/player_gui.cpp
--- a/src/player_gui.cpp	Fri May 23 16:08:58 2008 +0000
+++ b/src/player_gui.cpp	Fri May 23 22:55:32 2008 +0000
@@ -755,7 +755,7 @@
 	}
 
 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 @@
 	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
 }