summaryrefslogtreecommitdiff
path: root/train_cmd.c
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
commit07cb3068ae71ce331b540426cd098c6a33ca598a (patch)
treec41ff658c058ac5448d20ea2b75c1855bd443d93 /train_cmd.c
parentcb1f1921f65ac6ad582c7387b8629c3b5391d9d7 (diff)
downloadopenttd-07cb3068ae71ce331b540426cd098c6a33ca598a.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 'train_cmd.c')
-rw-r--r--train_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/train_cmd.c b/train_cmd.c
index df41334e6..32b89974e 100644
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -947,8 +947,8 @@ static void ReverseTrainSwapVeh(Vehicle *v, int l, int r)
if (!(b->u.rail.track & 0x80)) b->direction ^= 4;
/* swap more variables */
- swap_int16(&a->x_pos, &b->x_pos);
- swap_int16(&a->y_pos, &b->y_pos);
+ swap_int32(&a->x_pos, &b->x_pos);
+ swap_int32(&a->y_pos, &b->y_pos);
swap_tile(&a->tile, &b->tile);
swap_byte(&a->z_pos, &b->z_pos);