summaryrefslogtreecommitdiff
path: root/strings.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-11-14 13:07:07 +0000
committerdarkvater <darkvater@openttd.org>2004-11-14 13:07:07 +0000
commit397cc50f61768c73dd4a1ddea03fd5e763d85b50 (patch)
tree19e28ad2c07c2774c4b799f431c2acffe63d655a /strings.c
parent8946e92468db588a1a0d39da2b9a53523e091d10 (diff)
downloadopenttd-397cc50f61768c73dd4a1ddea03fd5e763d85b50.tar.xz
(svn r587) -newgrf: Rename all /Checkpoint/i tokens to 'Waypoint's. The name actually makes some sense and is also compatible with TTDPatch (pasky).
Diffstat (limited to 'strings.c')
-rw-r--r--strings.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/strings.c b/strings.c
index 92482bcbf..d24df8df4 100644
--- a/strings.c
+++ b/strings.c
@@ -523,8 +523,8 @@ static byte *DecodeString(byte *buff, const byte *str)
break;
}
- case 0x9D: { // {CHECKPOINT}
- Checkpoint *cp = &_checkpoints[GET_DPARAM16(0)];
+ case 0x9D: { // {WAYPOINT}
+ Waypoint *cp = &_waypoints[GET_DPARAM16(0)];
StringID str;
int idx;
if (~cp->town_or_string & 0xC000) {
@@ -533,11 +533,11 @@ static byte *DecodeString(byte *buff, const byte *str)
} else {
idx = (cp->town_or_string >> 8) & 0x3F;
if (idx == 0) {
- str = STR_CHECKPOINTNAME_CITY;
+ str = STR_WAYPOINTNAME_CITY;
} else {
InjectDparam(1);
SET_DPARAM16(1, idx + 1);
- str = STR_CHECKPOINTNAME_CITY_SERIAL;
+ str = STR_WAYPOINTNAME_CITY_SERIAL;
}
SET_DPARAM16(0, cp->town_or_string & 0xFF);
}