Add GUI/command support for >255 station types per station class

This commit is contained in:
Jonathan G Rennison
2023-02-16 22:33:34 +00:00
parent 50a48b1264
commit 5e398d9478
4 changed files with 14 additions and 9 deletions

View File

@@ -198,7 +198,7 @@
DEBUG(grf, 1, "%s returned an invalid station ID for 'AI construction/purchase selection (18)' callback", file->filename);
} else {
/* We might have gotten an usable station spec. Try to build it, but if it fails we'll fall back to the original station. */
if (ScriptObject::DoCommand(tile, p1, p2 | spec->cls_id | index << 8, CMD_BUILD_RAIL_STATION)) return true;
if (ScriptObject::DoCommandEx(tile, p1, p2 | spec->cls_id, index, CMD_BUILD_RAIL_STATION)) return true;
}
}