equal
deleted
inserted
replaced
488 SetDParam(1, p->name_2); |
488 SetDParam(1, p->name_2); |
489 SetDParam(2, GetPlayerNameString((byte)w->window_number, 3)); |
489 SetDParam(2, GetPlayerNameString((byte)w->window_number, 3)); |
490 |
490 |
491 dis = 0; |
491 dis = 0; |
492 if (GetAmountOwnedBy(p, 0xFF) == 0) dis |= 1 << 9; |
492 if (GetAmountOwnedBy(p, 0xFF) == 0) dis |= 1 << 9; |
|
493 // Also disable the buy button if 25% is not-owned by someone |
|
494 // and the player is not an AI |
|
495 if (GetAmountOwnedBy(p, 0xFF) == 1 && !p->is_ai) dis |= 1 << 9; |
493 if (GetAmountOwnedBy(p, _local_player) == 0) dis |= 1 << 10; |
496 if (GetAmountOwnedBy(p, _local_player) == 0) dis |= 1 << 10; |
494 |
497 |
495 w->disabled_state = dis; |
498 w->disabled_state = dis; |
496 DrawWindowWidgets(w); |
499 DrawWindowWidgets(w); |
497 |
500 |
499 DrawString(110, 25, STR_7038_INAUGURATED, 0); |
502 DrawString(110, 25, STR_7038_INAUGURATED, 0); |
500 |
503 |
501 DrawPlayerVehiclesAmount(w->window_number); |
504 DrawPlayerVehiclesAmount(w->window_number); |
502 |
505 |
503 DrawString(110,48, STR_7006_COLOR_SCHEME, 0); |
506 DrawString(110,48, STR_7006_COLOR_SCHEME, 0); |
504 DrawSprite((p->player_color<<16) + 0x3078C19, 215,49); |
507 // Draw company-colour bus (0xC19) |
|
508 DrawSprite(PLAYER_SPRITE_COLOR(p->index) + 0x8C19, 215, 49); |
505 |
509 |
506 DrawPlayerFace(p->face, p->player_color, 2, 16); |
510 DrawPlayerFace(p->face, p->player_color, 2, 16); |
507 |
511 |
508 SetDParam(0, p->president_name_1); |
512 SetDParam(0, p->president_name_1); |
509 SetDParam(1, p->president_name_2); |
513 SetDParam(1, p->president_name_2); |