src/rail_gui.cpp
changeset 7922 a7e266f966d9
parent 7904 20973fa6cc48
child 7928 63e18de69e50
equal deleted inserted replaced
7921:3437fdd5c0a8 7922:a7e266f966d9
  1107 		_railstation.newstations = true;
  1107 		_railstation.newstations = true;
  1108 		_railstation.station_count = GetNumCustomStations(_railstation.station_class);
  1108 		_railstation.station_count = GetNumCustomStations(_railstation.station_class);
  1109 
  1109 
  1110 		w->vscroll.count = _railstation.station_count;
  1110 		w->vscroll.count = _railstation.station_count;
  1111 		w->vscroll.cap   = 5;
  1111 		w->vscroll.cap   = 5;
  1112 		w->vscroll.pos   = clamp(_railstation.station_type - 2, 0, w->vscroll.count - w->vscroll.cap);
  1112 		w->vscroll.pos   = Clamp(_railstation.station_type - 2, 0, w->vscroll.count - w->vscroll.cap);
  1113 	}
  1113 	}
  1114 }
  1114 }
  1115 
  1115 
  1116 /** Enum referring to the widgets of the build rail depot window */
  1116 /** Enum referring to the widgets of the build rail depot window */
  1117 enum BuildRailDepotWidgets {
  1117 enum BuildRailDepotWidgets {