(svn r3415) - Fix: Disable the clone and refit buttons in the train view when viewing another player's vehicles, or as a spectator. (thanks to UnderBuilder for pointing this out)

pull/155/head
peter1138 19 years ago
parent 35c5be0e45
commit ca8a27a592

@ -905,7 +905,10 @@ static void TrainViewWndProc(Window *w, WindowEvent *e)
v = GetVehicle(w->window_number);
w->disabled_state = (v->owner == _local_player) ? 0 : 0x380;
if (v->owner != _local_player) {
w->disabled_state = 0x3380;
} else {
w->disabled_state = 0;
SETBIT(w->disabled_state, 12);
@ -918,6 +921,7 @@ static void TrainViewWndProc(Window *w, WindowEvent *e)
break;
}
}
}
/* draw widgets & caption */
SetDParam(0, v->string_id);

Loading…
Cancel
Save