diff options
Diffstat (limited to 'src/engine.cpp')
-rw-r--r-- | src/engine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine.cpp b/src/engine.cpp index 55930083c..c90d13297 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -793,7 +793,7 @@ void EnginesDailyLoop() e->flags |= ENGINE_OFFER_WINDOW_OPEN; e->preview_wait = 20; - AI::NewEvent(best_company, new AIEventEnginePreview(i)); + AI::NewEvent(best_company, new ScriptEventEnginePreview(i)); if (IsInteractiveCompany(best_company)) ShowEnginePreviewWindow(i); } } @@ -874,7 +874,7 @@ static void NewVehicleAvailable(Engine *e) FOR_ALL_COMPANIES(c) SetBit(c->avail_roadtypes, HasBit(e->info.misc_flags, EF_ROAD_TRAM) ? ROADTYPE_TRAM : ROADTYPE_ROAD); } - AI::BroadcastNewEvent(new AIEventEngineAvailable(index)); + AI::BroadcastNewEvent(new ScriptEventEngineAvailable(index)); SetDParam(0, GetEngineCategoryName(index)); SetDParam(1, index); |