summaryrefslogtreecommitdiff
path: root/strings.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-02-06 08:18:00 +0000
committertron <tron@openttd.org>2005-02-06 08:18:00 +0000
commitd3f84347ac934fa3b86f55df4dee135f6e1259ee (patch)
treee7f49d247bb563381139e0a730ab1ece0b430e89 /strings.c
parent72b539b05e9fb05e40555ab909c502900af26df6 (diff)
downloadopenttd-d3f84347ac934fa3b86f55df4dee135f6e1259ee.tar.xz
(svn r1813) Declare functions implemented in strings.c in their own shiny new header (though i think some of these function don't belong into strings.c)
Diffstat (limited to 'strings.c')
-rw-r--r--strings.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/strings.c b/strings.c
index 4925bbf5b..a089aa4a3 100644
--- a/strings.c
+++ b/strings.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "ttd.h"
+#include "strings.h"
#include "table/strings.h"
#include "namegen.h"
#include "station.h"
@@ -109,7 +110,7 @@ byte *GetString(byte *buffr, uint16 string)
return DecodeString(buffr, GetStringPtr(string));
}
-void InjectDparam(int amount)
+void InjectDParam(int amount)
{
memmove(_decode_parameters + amount, _decode_parameters, sizeof(_decode_parameters) - amount * sizeof(uint32));
}
@@ -443,7 +444,7 @@ static byte *DecodeString(byte *buff, const byte *str)
case 0x9A: { // {STATION}
Station *st;
- InjectDparam(1);
+ InjectDParam(1);
st = GetStation(GetDParam(1));
if (!st->xy) { // station doesn't exist anymore
buff = GetString(buff, STR_UNKNOWN_DESTINATION);
@@ -480,7 +481,7 @@ static byte *DecodeString(byte *buff, const byte *str)
if (idx == 0) {
str = STR_WAYPOINTNAME_CITY;
} else {
- InjectDparam(1);
+ InjectDParam(1);
SetDParam(1, idx + 1);
str = STR_WAYPOINTNAME_CITY_SERIAL;
}