From 79e2b3153d4d89a653a72e07727e58300b435ac4 Mon Sep 17 00:00:00 2001 From: terkhen Date: Tue, 14 Dec 2010 21:26:03 +0000 Subject: (svn r21516) -Codechange: Add IsGroundVehicle function to the Vehicle class. --- src/disaster_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/disaster_cmd.cpp') diff --git a/src/disaster_cmd.cpp b/src/disaster_cmd.cpp index faac56b00..e86448c5f 100644 --- a/src/disaster_cmd.cpp +++ b/src/disaster_cmd.cpp @@ -506,7 +506,7 @@ static bool DisasterTick_Big_Ufo(DisasterVehicle *v) Vehicle *target; FOR_ALL_VEHICLES(target) { - if (target->type == VEH_TRAIN || target->type == VEH_ROAD) { + if (target->IsGroundVehicle()) { if (Delta(target->x_pos, v->x_pos) + Delta(target->y_pos, v->y_pos) <= 12 * (int)TILE_SIZE) { target->breakdown_ctr = 5; target->breakdown_delay = 0xF0; -- cgit v1.2.3-54-g00ecf