diff options
author | darkvater <darkvater@openttd.org> | 2004-09-08 19:26:10 +0000 |
---|---|---|
committer | darkvater <darkvater@openttd.org> | 2004-09-08 19:26:10 +0000 |
commit | 8308432cf945d7e27a2f3a9595ea9e3939260625 (patch) | |
tree | 5ac301cc5eb03f623ad04fe1ad5e4232dfd93967 /player_gui.c | |
parent | 157e90b49ff90a58bf9b375e71a61c32ee1c7e28 (diff) | |
download | openttd-8308432cf945d7e27a2f3a9595ea9e3939260625.tar.xz |
(svn r187) -Feature: [1024044] Show max loan in finances window. (ledow)
-some type fixes in txt files
Diffstat (limited to 'player_gui.c')
-rw-r--r-- | player_gui.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/player_gui.c b/player_gui.c index 0fdf11695..2431a55b4 100644 --- a/player_gui.c +++ b/player_gui.c @@ -8,6 +8,7 @@ #include "player.h" #include "command.h" #include "vehicle.h" +#include "economy.h" static void DoShowPlayerFinances(int player, bool small); @@ -18,7 +19,7 @@ static void DrawPlayerEconomyStats(Player *p, byte mode) int64 (*tbl)[13], sum,cost; StringID str; - if (!(mode & 1)) { + if (!(mode & 1)) { // normal sized economics window (mode&1) is minimized status /* draw categories */ DrawStringCenterUnderline(61, 15, STR_700F_EXPENDITURE_INCOME, 0); for(i=0; i!=13; i++) @@ -61,9 +62,13 @@ static void DrawPlayerEconomyStats(Player *p, byte mode) } while (--j != 0); y = 171; - } else { + + // draw max loan aligned to loan below (y += 10) + SET_DPARAM64(0, (uint64)_economy.max_loan); + DrawString(202, y+10, STR_MAX_LOAN, 0); + + } else y = 15; - } DrawString(2, y, STR_7026_BANK_BALANCE, 0); SET_DPARAM64(0, p->money64); |