Skip to content

Commit e6e2d0b

Browse files
committed
Fix: Match GRF ID conventions and correct version checks
1 parent 82c1440 commit e6e2d0b

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

baseset/nml/extra/extra-header.pnml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
grf {
2-
grfid: "OGZ\0";
2+
//grfid: "OGZ\0";
3+
grfid: "\FFOT2"; //Adheres to "\FFOT" base set GRF ID range
34
name: string(STR_GRF_NAME);
45
desc: string(STR_GRF_DESCRIPTION);
56
url: string(STR_GRF_URL);

newgrf/nml/settings/settings-header.pnml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ grf {
44
desc: string(STR_GRF_DESCRIPTION);
55
url: string(STR_GRF_URL);
66
version: 1;
7-
min_compatible_version: 1;
7+
min_compatible_version: version_openttd(1, 3, 0);
88
param 1 {
99
param_cursors {
1010
name: string(STR_PARAM_CURSOR_NAME);
@@ -49,3 +49,13 @@ grf {
4949
}
5050
}
5151
}
52+
53+
if (ttd_platform == PLATFORM_OPENTTD) {
54+
if (openttd_version < version_openttd(1, 3, 0)) {
55+
error(FATAL, REQUIRES_OPENTTD, "1.3.0");
56+
}
57+
}
58+
59+
if (ttd_platform != PLATFORM_OPENTTD) {
60+
error(FATAL, REQUIRES_OPENTTD, "1.3.0");
61+
}

0 commit comments

Comments
 (0)