| author | glx |
| Tue, 10 Oct 2006 17:19:21 +0000 | |
| changeset 4805 | a03106c010b3 |
| parent 4804 | 74d2003d6f9b |
| child 4806 | a75776d5c5a4 |
| player_gui.c | file | annotate | diff | comparison | revisions |
--- a/player_gui.c Tue Oct 10 15:46:03 2006 +0000 +++ b/player_gui.c Tue Oct 10 17:19:21 2006 +0000 @@ -155,7 +155,10 @@ 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);