summaryrefslogtreecommitdiff
path: root/src/ai/default
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2007-11-19 21:02:30 +0000
committerskidd13 <skidd13@openttd.org>2007-11-19 21:02:30 +0000
commitc0a2c0c23e129cb81400c5204fc9d0eedd9afb85 (patch)
tree21212e0b25777aac62f30d88b981e2bd624c4616 /src/ai/default
parent7a4d96f629a9bd447846f8569fad78cf8e5196c5 (diff)
downloadopenttd-c0a2c0c23e129cb81400c5204fc9d0eedd9afb85.tar.xz
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
Diffstat (limited to 'src/ai/default')
-rw-r--r--src/ai/default/default.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ai/default/default.cpp b/src/ai/default/default.cpp
index 1d6ca0189..419dd39bb 100644
--- a/src/ai/default/default.cpp
+++ b/src/ai/default/default.cpp
@@ -146,7 +146,7 @@ static EngineID AiChooseTrainToBuild(RailType railtype, Money money, byte flag,
if (!IsCompatibleRail(rvi->railtype, railtype) ||
rvi->railveh_type == RAILVEH_WAGON ||
(rvi->railveh_type == RAILVEH_MULTIHEAD && flag & 1) ||
- !HASBIT(e->player_avail, _current_player) ||
+ !HasBit(e->player_avail, _current_player) ||
e->reliability < 0x8A3D) {
continue;
}
@@ -174,7 +174,7 @@ static EngineID AiChooseRoadVehToBuild(CargoID cargo, Money money, TileIndex til
int32 rating;
CommandCost ret;
- if (!HASBIT(e->player_avail, _current_player) || e->reliability < 0x8A3D) {
+ if (!HasBit(e->player_avail, _current_player) || e->reliability < 0x8A3D) {
continue;
}
@@ -209,7 +209,7 @@ static EngineID AiChooseAircraftToBuild(Money money, byte flag)
const Engine* e = GetEngine(i);
CommandCost ret;
- if (!HASBIT(e->player_avail, _current_player) || e->reliability < 0x8A3D) {
+ if (!HasBit(e->player_avail, _current_player) || e->reliability < 0x8A3D) {
continue;
}
@@ -2412,7 +2412,7 @@ static EngineID AiFindBestWagon(CargoID cargo, RailType railtype)
if (!IsCompatibleRail(rvi->railtype, railtype) ||
rvi->railveh_type != RAILVEH_WAGON ||
- !HASBIT(e->player_avail, _current_player)) {
+ !HasBit(e->player_avail, _current_player)) {
continue;
}
@@ -3366,7 +3366,7 @@ static CommandCost AiDoBuildDefaultAirportBlock(TileIndex tile, const AiDefaultB
CommandCost total_cost, ret;
for (; p->mode == 0; p++) {
- if (!HASBIT(avail_airports, p->attr)) return CMD_ERROR;
+ if (!HasBit(avail_airports, p->attr)) return CMD_ERROR;
ret = DoCommand(TILE_MASK(tile + ToTileIndexDiff(p->tileoffs)), p->attr, 0, flag | DC_AUTO | DC_NO_WATER, CMD_BUILD_AIRPORT);
if (CmdFailed(ret)) return CMD_ERROR;
total_cost.AddCost(ret);