From b8f6d41418982163965dd5beb0b39dbdce1fbe8f Mon Sep 17 00:00:00 2001 From: truelight Date: Sat, 4 Dec 2004 17:54:56 +0000 Subject: (svn r942) -Merged branch/network back into the trunk --- player_gui.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'player_gui.c') diff --git a/player_gui.c b/player_gui.c index 2a54501f7..541429ac7 100644 --- a/player_gui.c +++ b/player_gui.c @@ -490,6 +490,9 @@ static void PlayerCompanyWndProc(Window *w, WindowEvent *e) dis = 0; if (GetAmountOwnedBy(p, 0xFF) == 0) dis |= 1 << 9; + // Also disable the buy button if 25% is not-owned by someone + // and the player is not an AI + if (GetAmountOwnedBy(p, 0xFF) == 1 && !p->is_ai) dis |= 1 << 9; if (GetAmountOwnedBy(p, _local_player) == 0) dis |= 1 << 10; w->disabled_state = dis; @@ -501,7 +504,8 @@ static void PlayerCompanyWndProc(Window *w, WindowEvent *e) DrawPlayerVehiclesAmount(w->window_number); DrawString(110,48, STR_7006_COLOR_SCHEME, 0); - DrawSprite((p->player_color<<16) + 0x3078C19, 215,49); + // Draw company-colour bus (0xC19) + DrawSprite(PLAYER_SPRITE_COLOR(p->index) + 0x8C19, 215, 49); DrawPlayerFace(p->face, p->player_color, 2, 16); -- cgit v1.2.3-54-g00ecf