summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-08-28 17:08:01 +0200
committerGitHub <noreply@github.com>2021-08-28 17:08:01 +0200
commit8ab267496b7c9fb65a4f8931ae27851bb3136191 (patch)
tree6206f2c730ea3226133e5df760d1edb60cf58d93 /src
parent8d2162ba2de916fb587e196ee9b563a722831c18 (diff)
downloadopenttd-8ab267496b7c9fb65a4f8931ae27851bb3136191.tar.xz
Codechange: reference a string by its name, not with "another + 1" (#9517)
It is wrong anyway, as "TINY" normally is at -1. Just weird code.
Diffstat (limited to 'src')
-rw-r--r--src/viewport.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp
index d0b2cef2b..b3ccba2b5 100644
--- a/src/viewport.cpp
+++ b/src/viewport.cpp
@@ -1422,12 +1422,12 @@ static void ViewportAddKdtreeSigns(DrawPixelInfo *dpi)
if (Station::IsExpected(st)) {
/* Station */
ViewportAddString(dpi, ZOOM_LVL_OUT_16X, &st->sign,
- STR_VIEWPORT_STATION, STR_VIEWPORT_STATION + 1, STR_NULL,
+ STR_VIEWPORT_STATION, STR_VIEWPORT_STATION_TINY, STR_NULL,
st->index, st->facilities, (st->owner == OWNER_NONE || !st->IsInUse()) ? COLOUR_GREY : _company_colours[st->owner]);
} else {
/* Waypoint */
ViewportAddString(dpi, ZOOM_LVL_OUT_16X, &st->sign,
- STR_VIEWPORT_WAYPOINT, STR_VIEWPORT_WAYPOINT + 1, STR_NULL,
+ STR_VIEWPORT_WAYPOINT, STR_VIEWPORT_WAYPOINT_TINY, STR_NULL,
st->index, st->facilities, (st->owner == OWNER_NONE || !st->IsInUse()) ? COLOUR_GREY : _company_colours[st->owner]);
}
}