File diff r18763:938cba34d55a → r18764:f6e8611401f3
src/disaster_cmd.cpp
Show inline comments
 
@@ -37,12 +37,13 @@
 
#include "viewport_func.h"
 
#include "vehicle_func.h"
 
#include "sound_func.h"
 
#include "effectvehicle_func.h"
 
#include "roadveh.h"
 
#include "ai/ai.hpp"
 
#include "game/game.hpp"
 
#include "company_base.h"
 
#include "core/random_func.hpp"
 
#include "core/backup_type.hpp"
 

	
 
#include "table/strings.h"
 

	
 
@@ -355,12 +356,13 @@ static bool DisasterTick_Ufo(DisasterVeh
 

	
 
				AddVehicleNewsItem(STR_NEWS_DISASTER_SMALL_UFO,
 
					NS_ACCIDENT,
 
					u->index); // delete the news, when the roadvehicle is gone
 

	
 
				AI::NewEvent(u->owner, new ScriptEventVehicleCrashed(u->index, u->tile, ScriptEventVehicleCrashed::CRASH_RV_UFO));
 
				Game::NewEvent(new ScriptEventVehicleCrashed(u->index, u->tile, ScriptEventVehicleCrashed::CRASH_RV_UFO));
 
			}
 
		}
 

	
 
		/* Destroy? */
 
		if (v->age > 50) {
 
			CreateEffectVehicleRel(v, 0, 7, 8, EV_EXPLOSION_LARGE);