(svn r27858) -Change [FS#6560]: Add missing game script event for ships arriving at a station. (juanjo)

This commit is contained in:
peter1138
2017-04-23 09:19:32 +00:00
parent 24406b44c3
commit e9e44105eb
2 changed files with 3 additions and 1 deletions

View File

@@ -28,6 +28,7 @@
#include "vehicle_func.h"
#include "sound_func.h"
#include "ai/ai.hpp"
#include "game/game.hpp"
#include "pathfinder/opf/opf_ship.h"
#include "engine_base.h"
#include "company_base.h"
@@ -421,6 +422,7 @@ static void ShipArrivesAt(const Vehicle *v, Station *st)
st->index
);
AI::NewEvent(v->owner, new ScriptEventStationFirstVehicle(st->index, v->index));
Game::NewEvent(new ScriptEventStationFirstVehicle(st->index, v->index));
}
}