diff options
author | Darkvater <darkvater@openttd.org> | 2006-10-12 15:13:40 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-10-12 15:13:40 +0000 |
commit | 0ae642b9143bc2a2aeb6eb232a7dd8950f0e28fd (patch) | |
tree | 931a7de4c1ee526b74d6f55d691af56c66a2b6bd /macros.h | |
parent | f1f6e4df277e599b15c13963d77db1c225374b8a (diff) | |
download | openttd-0ae642b9143bc2a2aeb6eb232a7dd8950f0e28fd.tar.xz |
(svn r6758) -Feature: Add a measurement tool that will show dimensions and height
differences of various draggable tools (inspiration, concept and double
checking by MeusH).
Diffstat (limited to 'macros.h')
-rw-r--r-- | macros.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -148,6 +148,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_uint32(uint32 *a, uint32 *b) { uint32 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; } |