equal
deleted
inserted
replaced
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 { |