diff options
author | glx <glx@openttd.org> | 2006-10-05 19:00:24 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2006-10-05 19:00:24 +0000 |
commit | 69adf2e93f8e6eb81af29801ae8d51bfedee0790 (patch) | |
tree | ba25759c3d07866e5cf62a712a9da5bf4d07656a | |
parent | 971c50d68e503e748e45a68137dfd1351eb28d43 (diff) | |
download | openttd-69adf2e93f8e6eb81af29801ae8d51bfedee0790.tar.xz |
(svn r6656) -Fix r6631: keep gender button lowered when clicking on 'New Face'
-rw-r--r-- | player_gui.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/player_gui.c b/player_gui.c index c0785ad95..afe68794a 100644 --- a/player_gui.c +++ b/player_gui.c @@ -508,10 +508,9 @@ static const WindowDesc _select_player_livery_desc = { static void SelectPlayerFaceWndProc(Window *w, WindowEvent *e) { switch (e->event) { - case WE_CREATE: LowerWindowWidget(w, WP(w, facesel_d).gender + 5); break; - case WE_PAINT: { Player *p; + LowerWindowWidget(w, WP(w, facesel_d).gender + 5); DrawWindowWidgets(w); p = GetPlayer(w->window_number); DrawPlayerFace(WP(w,facesel_d).face, p->player_color, 2, 16); |