(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:
celestar
2007-01-11 12:32:10 +00:00
parent 2ac0410767
commit 1691b2da61
5 changed files with 15 additions and 22 deletions

View File

@@ -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);