Add object highlight types from blueprint branch

This commit is contained in:
dP
2021-01-27 01:31:41 +03:00
parent 363cfa7e8c
commit 583f8a2a87
3 changed files with 384 additions and 38 deletions

View File

@@ -825,7 +825,7 @@ struct BuildRailToolbarWindow : Window {
ddir = _build_depot_direction;
if (ddir == DIAGDIR_NW + 1) {
assert(_thd.cm.type == citymania::ObjectHighlight::Type::RAIL_DEPOT);
ddir = _thd.cm.u.depot.ddir;
ddir = _thd.cm.ddir;
}
DoCommandP(tile, _cur_railtype, ddir,
CMD_BUILD_TRAIN_DEPOT | CMD_MSG(STR_ERROR_CAN_T_BUILD_TRAIN_DEPOT),