Mercurial > hg > openttd
changeset 9204:e751d0163171 draft
(svn r13070) -Fix (r13069): do save before commit...
author | rubidium <rubidium@openttd.org> |
---|---|
date | Tue, 13 May 2008 14:58:41 +0000 |
parents | 375bae14ff71 |
children | a8b1f6fa5f79 |
files | src/player_gui.cpp |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/player_gui.cpp +++ b/src/player_gui.cpp @@ -769,11 +769,11 @@ } 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 @@ { 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 }