diff options
author | tron <tron@openttd.org> | 2005-02-06 08:18:00 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-02-06 08:18:00 +0000 |
commit | 0381073e56049b39df7fa28cc082a41829951724 (patch) | |
tree | e7f49d247bb563381139e0a730ab1ece0b430e89 /strings.c | |
parent | 0b8876e946b3a9b38b57d9688512cb7a54148720 (diff) | |
download | openttd-0381073e56049b39df7fa28cc082a41829951724.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.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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; } |