(svn r18866) -Codechange: remove the CmdFailed(ret)/CmdSucceeded(ret) wrapper functions

This commit is contained in:
rubidium
2010-01-18 22:57:21 +00:00
parent 12055bdd9a
commit f618acfb7d
24 changed files with 104 additions and 128 deletions

View File

@@ -1219,7 +1219,7 @@ void HandleMissingAircraftOrders(Aircraft *v)
ret = DoCommand(v->tile, v->index, 0, DC_EXEC, CMD_SEND_AIRCRAFT_TO_HANGAR);
_current_company = old_company;
if (CmdFailed(ret)) CrashAirplane(v);
if (ret.Failed()) CrashAirplane(v);
} else if (!v->current_order.IsType(OT_GOTO_DEPOT)) {
v->current_order.Free();
}