(svn r23355) -Codechange: rename all AI* to Script* (Rubidium)
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user