equal
deleted
inserted
replaced
7 #include "town.h" |
7 #include "town.h" |
8 #include "vehicle.h" |
8 #include "vehicle.h" |
9 #include "news.h" |
9 #include "news.h" |
10 #include "screenshot.h" |
10 #include "screenshot.h" |
11 |
11 |
12 #define USE_TABLE(x) { assert(index < lengthof(x)); str = x[index]; break; } |
|
13 |
|
14 static byte *StationGetSpecialString(byte *buff); |
12 static byte *StationGetSpecialString(byte *buff); |
15 static byte *GetSpecialTownNameString(byte *buff, int ind); |
13 static byte *GetSpecialTownNameString(byte *buff, int ind); |
16 static byte *GetSpecialPlayerNameString(byte *buff, int ind); |
14 static byte *GetSpecialPlayerNameString(byte *buff, int ind); |
17 |
15 |
18 static byte *DecodeString(byte *buff, const byte *str); |
16 static byte *DecodeString(byte *buff, const byte *str); |
21 static byte *_langpack; |
19 static byte *_langpack; |
22 static uint _langtab_num[32]; // Offset into langpack offs |
20 static uint _langtab_num[32]; // Offset into langpack offs |
23 static uint _langtab_start[32]; // Offset into langpack offs |
21 static uint _langtab_start[32]; // Offset into langpack offs |
24 |
22 |
25 extern const char _openttd_revision[]; |
23 extern const char _openttd_revision[]; |
26 |
|
27 typedef byte *PlayerNameGeneratorProc(byte *buffr); |
|
28 |
24 |
29 typedef struct { |
25 typedef struct { |
30 uint32 ident; |
26 uint32 ident; |
31 uint32 version; // 32-bits of auto generated version info which is basically a hash of strings.h |
27 uint32 version; // 32-bits of auto generated version info which is basically a hash of strings.h |
32 char name[32]; // the international name of this language |
28 char name[32]; // the international name of this language |