forked from mirror/OpenTTD
(svn r8056) -Codechange: Remove swap_byte, swap_byte, and siblings (some were not used anyway) and replace them by our SwapT implementation
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user