summaryrefslogtreecommitdiff
path: root/aircraft_cmd.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-08-16 22:35:17 +0000
committerdarkvater <darkvater@openttd.org>2004-08-16 22:35:17 +0000
commitb4e9a3d1d40d87f79394db4c4425d006aee253da (patch)
tree34c3bf9557f7b58d9537757fb42f293f44edce7f /aircraft_cmd.c
parent345e2c38ad6c28c40063dd42a421488c5d664f61 (diff)
downloadopenttd-b4e9a3d1d40d87f79394db4c4425d006aee253da.tar.xz
(svn r71) -Cheat: [976127] no extra frequent jet crash on small airports (truesatan)
-Changed some debug messages in aircraft code to DEBUG(misc, 1)
Diffstat (limited to 'aircraft_cmd.c')
-rw-r--r--aircraft_cmd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/aircraft_cmd.c b/aircraft_cmd.c
index f6ee422aa..c4500864e 100644
--- a/aircraft_cmd.c
+++ b/aircraft_cmd.c
@@ -1132,7 +1132,7 @@ static void MaybeCrashAirplane(Vehicle *v)
//FIXME -- MaybeCrashAirplane -> increase crashing chances of very modern airplanes on smaller than AT_METROPOLITAN airports
prob = 0x10000 / 1500;
- if (st->airport_type == AT_SMALL && (_aircraft_subtype[v->engine_type - AIRCRAFT_ENGINES_INDEX]&2)) {
+ if (st->airport_type == AT_SMALL && (_aircraft_subtype[v->engine_type - AIRCRAFT_ENGINES_INDEX]&2) && !_cheats.no_jetcrash.value) {
prob = 0x10000 / 20;
}
@@ -1391,8 +1391,8 @@ static void AircraftEventHandler_AtTerminal(Vehicle *v, const AirportFTAClass *A
static void AircraftEventHandler_General(Vehicle *v, const AirportFTAClass *Airport)
{
- printf("OK, you shouldn't be here, check your Airport Scheme!\n");
- assert(1 == v->u.air.state); // when here state is 0, so this always fails
+ DEBUG(misc, 0) ("OK, you shouldn't be here, check your Airport Scheme!");
+ assert(0);
}
static void AircraftEventHandler_TakeOff(Vehicle *v, const AirportFTAClass *Airport) {
@@ -1565,7 +1565,7 @@ static bool AirportMove(Vehicle *v, const AirportFTAClass *Airport)
// error handling
if (v->u.air.pos >= Airport->nofelements) {
- printf("position %d is not valid for current airport. Max position is %d\n", v->u.air.pos, Airport->nofelements-1);
+ DEBUG(misc, 0) ("position %d is not valid for current airport. Max position is %d", v->u.air.pos, Airport->nofelements-1);
assert(v->u.air.pos < Airport->nofelements);
}
@@ -1600,8 +1600,8 @@ static bool AirportMove(Vehicle *v, const AirportFTAClass *Airport)
current = current->next_in_chain;
} while (current != NULL);
- printf("Cannot move further on Airport...! pos:%d state:%d\n", v->u.air.pos, v->u.air.state);
- printf("Airport entry point: %d, Vehicle: %d\n", Airport->entry_point, v->index);
+ DEBUG(misc, 0) ("Cannot move further on Airport...! pos:%d state:%d", v->u.air.pos, v->u.air.state);
+ DEBUG(misc, 0) ("Airport entry point: %d, Vehicle: %d", Airport->entry_point, v->index);
assert(0);
return false;
}