1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 12:03:07 +01:00

Use a define for maximum station length

This commit is contained in:
Gymnasiast
2016-05-07 09:15:22 +02:00
parent 17626dbb1a
commit bc0e21343a
2 changed files with 3 additions and 1 deletions

View File

@@ -4186,7 +4186,7 @@ static bool track_add_station_element(int x, int y, int z, int direction, int ri
return false;
}
if (stationLength > 32) {
if (stationLength > MAX_STATION_PLATFORM_LENGTH) {
gGameCommandErrorText = STR_STATION_PLATFORM_TOO_LONG;
return false;
}

View File

@@ -117,6 +117,8 @@ enum {
#define TRACK_PREVIEW_IMAGE_SIZE (370 * 217)
#define MAX_STATION_PLATFORM_LENGTH 32
/**
* Track design structure.
* size: 0x4E72B