summaryrefslogtreecommitdiff
path: root/macros.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-25 21:43:57 +0000
committertron <tron@openttd.org>2005-01-25 21:43:57 +0000
commit993a106679e4e682d9028fe44d1e5f9f1f178506 (patch)
treec41ff658c058ac5448d20ea2b75c1855bd443d93 /macros.h
parent8e5e2e52fd67b0593c866e4777f9738d9fb6f368 (diff)
downloadopenttd-993a106679e4e682d9028fe44d1e5f9f1f178506.tar.xz
(svn r1676) Increase the size of TileIndex and TileIndexDiff to 32bits and adapt the save/load data and some other parts of the code to that change
WARNING: If i made any mistake here it WILL lead to corrupted savegames!
Diffstat (limited to 'macros.h')
-rw-r--r--macros.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/macros.h b/macros.h
index 1294dd216..765a4e7a6 100644
--- a/macros.h
+++ b/macros.h
@@ -160,6 +160,7 @@ static inline int64 myabs64(int64 a) { if (a<0) a = -a; return a; }
static inline void swap_byte(byte *a, byte *b) { byte t = *a; *a = *b; *b = t; }
static inline void swap_uint16(uint16 *a, uint16 *b) { uint16 t = *a; *a = *b; *b = t; }
static inline void swap_int16(int16 *a, int16 *b) { int16 t = *a; *a = *b; *b = t; }
+static inline void swap_int32(int32 *a, int32 *b) { int32 t = *a; *a = *b; *b = t; }
static inline void swap_tile(TileIndex *a, TileIndex *b) { TileIndex t = *a; *a = *b; *b = t; }