summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2007-01-11 12:32:10 +0000
committercelestar <celestar@openttd.org>2007-01-11 12:32:10 +0000
commitc56ee62ade0bf539e0ed5e91e2b1e3f0a9b8ec23 (patch)
tree5641df6933c5082202a0fd343b0195526ff1345c /src/ai
parent08de6b082af59087361b5d7e5be67b6e3cd66a82 (diff)
downloadopenttd-c56ee62ade0bf539e0ed5e91e2b1e3f0a9b8ec23.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/ai')
-rw-r--r--src/ai/default/default.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ai/default/default.cpp b/src/ai/default/default.cpp
index 5a328e9d0..fff5cef8a 100644
--- a/src/ai/default/default.cpp
+++ b/src/ai/default/default.cpp
@@ -2291,10 +2291,10 @@ static void AiStateBuildRail(Player *p)
AiBuildRail(p);
// Alternate between edges
- swap_tile(&p->ai.start_tile_a, &p->ai.start_tile_b);
- swap_tile(&p->ai.cur_tile_a, &p->ai.cur_tile_b);
- swap_byte(&p->ai.start_dir_a, &p->ai.start_dir_b);
- swap_byte(&p->ai.cur_dir_a, &p->ai.cur_dir_b);
+ SwapT(&p->ai.start_tile_a, &p->ai.start_tile_b);
+ SwapT(&p->ai.cur_tile_a, &p->ai.cur_tile_b);
+ SwapT(&p->ai.start_dir_a, &p->ai.start_dir_b);
+ SwapT(&p->ai.cur_dir_a, &p->ai.cur_dir_b);
return;
}
@@ -3112,10 +3112,10 @@ static void AiStateBuildRoad(Player *p)
AiBuildRoad(p);
// Alternate between edges
- swap_tile(&p->ai.start_tile_a, &p->ai.start_tile_b);
- swap_tile(&p->ai.cur_tile_a, &p->ai.cur_tile_b);
- swap_byte(&p->ai.start_dir_a, &p->ai.start_dir_b);
- swap_byte(&p->ai.cur_dir_a, &p->ai.cur_dir_b);
+ SwapT(&p->ai.start_tile_a, &p->ai.start_tile_b);
+ SwapT(&p->ai.cur_tile_a, &p->ai.cur_tile_b);
+ SwapT(&p->ai.start_dir_a, &p->ai.start_dir_b);
+ SwapT(&p->ai.cur_dir_a, &p->ai.cur_dir_b);
return;
}