mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 03:56:43 +00:00
Codechange: make VehicleType a scoped enum
This commit is contained in:
committed by
Peter Nelson
parent
b90aefbf49
commit
77403627a8
@@ -43,6 +43,13 @@ static const SaveLoad _engine_desc[] = {
|
||||
|
||||
static TypedIndexContainer<std::vector<Engine>, EngineID> _temp_engine;
|
||||
|
||||
/**
|
||||
* Get temporary engine data for loading savegame engine information.
|
||||
* @param index Engine ID of data.
|
||||
* @param type Vehicle type of engine.
|
||||
* @param local_id The local index of the engine.
|
||||
* @return A temporary engine.
|
||||
*/
|
||||
Engine *GetTempDataEngine(EngineID index, VehicleType type, uint16_t local_id)
|
||||
{
|
||||
if (index < _temp_engine.size()) {
|
||||
|
||||
Reference in New Issue
Block a user