Changeset - r4805:be84469ea20d
[Not reviewed]
master
0 1 0
glx - 18 years ago 2006-10-10 17:19:21
glx@openttd.org
(svn r6727) -Fix r6619: don't disable inexistant widget
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
player_gui.c
Show inline comments
 
@@ -152,13 +152,16 @@ static void PlayerFinancesWndProc(Window
 
{
 
	switch (e->event) {
 
	case WE_PAINT: {
 
		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);
 
		SetDParam(2, GetPlayerNameString(player, 3));
 
		SetDParam(4, 10000);
 
		DrawWindowWidgets(w);
0 comments (0 inline, 0 general)