mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-04 21:33:51 +00:00
(svn r6656) -Fix r6631: keep gender button lowered when clicking on 'New Face'
This commit is contained in:
parent
971c50d68e
commit
69adf2e93f
@ -508,10 +508,9 @@ static const WindowDesc _select_player_livery_desc = {
|
|||||||
static void SelectPlayerFaceWndProc(Window *w, WindowEvent *e)
|
static void SelectPlayerFaceWndProc(Window *w, WindowEvent *e)
|
||||||
{
|
{
|
||||||
switch (e->event) {
|
switch (e->event) {
|
||||||
case WE_CREATE: LowerWindowWidget(w, WP(w, facesel_d).gender + 5); break;
|
|
||||||
|
|
||||||
case WE_PAINT: {
|
case WE_PAINT: {
|
||||||
Player *p;
|
Player *p;
|
||||||
|
LowerWindowWidget(w, WP(w, facesel_d).gender + 5);
|
||||||
DrawWindowWidgets(w);
|
DrawWindowWidgets(w);
|
||||||
p = GetPlayer(w->window_number);
|
p = GetPlayer(w->window_number);
|
||||||
DrawPlayerFace(WP(w,facesel_d).face, p->player_color, 2, 16);
|
DrawPlayerFace(WP(w,facesel_d).face, p->player_color, 2, 16);
|
||||||
|
Loading…
Reference in New Issue
Block a user