diff options
author | glx <glx@openttd.org> | 2006-10-10 17:19:21 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2006-10-10 17:19:21 +0000 |
commit | 5b0183ce70eeed0fd2f90aa30acaeddc97a3c6b8 (patch) | |
tree | 3f8591831107e6ea3bf2d3b9c24ccb75eec6bb1f | |
parent | 8d5033ee25d269262c7fea940e59b1bebf1c0d45 (diff) | |
download | openttd-5b0183ce70eeed0fd2f90aa30acaeddc97a3c6b8.tar.xz |
(svn r6727) -Fix r6619: don't disable inexistant widget
-rw-r--r-- | player_gui.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/player_gui.c b/player_gui.c index d59dcecfa..6fb3fd7ff 100644 --- a/player_gui.c +++ b/player_gui.c @@ -155,7 +155,10 @@ static void PlayerFinancesWndProc(Window *w, WindowEvent *e) PlayerID player = w->window_number; const Player *p = GetPlayer(player); - SetWindowWidgetDisabledState(w, 7, p->current_loan == 0); + if (player == _local_player) { + /* borrow/repay buttons only exist for local player */ + SetWindowWidgetDisabledState(w, 7, p->current_loan == 0); + } SetDParam(0, p->name_1); SetDParam(1, p->name_2); |