diff options
author | celestar <celestar@openttd.org> | 2007-01-11 12:32:10 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2007-01-11 12:32:10 +0000 |
commit | 1691b2da618e2701adee128eb5fc4168bff69f59 (patch) | |
tree | 5641df6933c5082202a0fd343b0195526ff1345c /src/train_cmd.cpp | |
parent | 2ac0410767683fb0e6315433f9805712cb85f5bd (diff) | |
download | openttd-1691b2da618e2701adee128eb5fc4168bff69f59.tar.xz |
(svn r8056) -Codechange: Remove swap_byte, swap_byte, and siblings (some were not used anyway) and replace them by our SwapT implementation
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r-- | src/train_cmd.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index c551d1872..98c2dac06 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -1603,10 +1603,10 @@ static void ReverseTrainSwapVeh(Vehicle *v, int l, int r) if (!(b->u.rail.track & 0x80)) b->direction = ReverseDir(b->direction); /* swap more variables */ - 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); + SwapT(&a->x_pos, &b->x_pos); + SwapT(&a->y_pos, &b->y_pos); + SwapT(&a->tile, &b->tile); + SwapT(&a->z_pos, &b->z_pos); SwapTrainFlags(&a->u.rail.flags, &b->u.rail.flags); |