forked from mirror/OpenTTD
(svn r10601) -Codechange: store (and use) the type of stations instead of hardcoding station types by graphics IDs.
This commit is contained in:
@@ -759,7 +759,7 @@ static void StationBuildWndProc(Window *w, WindowEvent *e)
|
||||
old_dpi = _cur_dpi;
|
||||
_cur_dpi = &tmp_dpi;
|
||||
if (!DrawStationTile(32, 16, _cur_railtype, AXIS_X, _railstation.station_class, _railstation.station_type)) {
|
||||
StationPickerDrawSprite(32, 16, _cur_railtype, INVALID_ROADTYPE, 2);
|
||||
StationPickerDrawSprite(32, 16, STATION_RAIL, _cur_railtype, INVALID_ROADTYPE, 2);
|
||||
}
|
||||
_cur_dpi = old_dpi;
|
||||
}
|
||||
@@ -769,7 +769,7 @@ static void StationBuildWndProc(Window *w, WindowEvent *e)
|
||||
old_dpi = _cur_dpi;
|
||||
_cur_dpi = &tmp_dpi;
|
||||
if (!DrawStationTile(32, 16, _cur_railtype, AXIS_Y, _railstation.station_class, _railstation.station_type)) {
|
||||
StationPickerDrawSprite(32, 16, _cur_railtype, INVALID_ROADTYPE, 3);
|
||||
StationPickerDrawSprite(32, 16, STATION_RAIL, _cur_railtype, INVALID_ROADTYPE, 3);
|
||||
}
|
||||
_cur_dpi = old_dpi;
|
||||
}
|
||||
|
Reference in New Issue
Block a user