equal
deleted
inserted
replaced
77 y = 171; |
77 y = 171; |
78 |
78 |
79 // draw max loan aligned to loan below (y += 10) |
79 // draw max loan aligned to loan below (y += 10) |
80 SetDParam64(0, (uint64)_economy.max_loan); |
80 SetDParam64(0, (uint64)_economy.max_loan); |
81 DrawString(202, y+10, STR_MAX_LOAN, 0); |
81 DrawString(202, y+10, STR_MAX_LOAN, 0); |
82 |
82 } else { |
83 } else |
|
84 y = 15; |
83 y = 15; |
|
84 } |
85 |
85 |
86 DrawString(2, y, STR_7026_BANK_BALANCE, 0); |
86 DrawString(2, y, STR_7026_BANK_BALANCE, 0); |
87 SetDParam64(0, p->money64); |
87 SetDParam64(0, p->money64); |
88 DrawStringRightAligned(182, y, STR_7028, 0); |
88 DrawStringRightAligned(182, y, STR_7028, 0); |
89 |
89 |
522 /* If the player doesn't own any shares, disable sell button */ |
522 /* If the player doesn't own any shares, disable sell button */ |
523 if (GetAmountOwnedBy(p, _local_player) == 0) SETBIT(dis, 10); |
523 if (GetAmountOwnedBy(p, _local_player) == 0) SETBIT(dis, 10); |
524 |
524 |
525 /* Spectators cannot do anything of course */ |
525 /* Spectators cannot do anything of course */ |
526 if (_local_player == OWNER_SPECTATOR) dis |= (1 << 9) | (1 << 10); |
526 if (_local_player == OWNER_SPECTATOR) dis |= (1 << 9) | (1 << 10); |
527 } else /* shares are not allowed, disable buy/sell buttons */ |
527 } else { /* shares are not allowed, disable buy/sell buttons */ |
528 dis |= (1 << 9) | (1 << 10); |
528 dis |= (1 << 9) | (1 << 10); |
|
529 } |
529 } |
530 } |
530 |
531 |
531 SetDParam(0, p->name_1); |
532 SetDParam(0, p->name_1); |
532 SetDParam(1, p->name_2); |
533 SetDParam(1, p->name_2); |
533 SetDParam(2, GetPlayerNameString((byte)w->window_number, 3)); |
534 SetDParam(2, GetPlayerNameString((byte)w->window_number, 3)); |