mirror of https://github.com/OpenTTD/OpenTTD
(svn r12872) -Codechange: Remove obsolete unused engine list order function
parent
345f160978
commit
f8612ad5b9
|
@ -1099,18 +1099,6 @@ void ResetEngineListOrder()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the EngineID at position pos.
|
|
||||||
* Used when drawing a(n unsorted) list of engines.
|
|
||||||
* @param pos List position/
|
|
||||||
* @return The EngineID at the requested position.
|
|
||||||
*/
|
|
||||||
EngineID GetRailVehAtPosition(EngineID pos)
|
|
||||||
{
|
|
||||||
if (pos < NUM_TRAIN_ENGINES) return _engine_list_order[pos];
|
|
||||||
return pos;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the list position of an engine.
|
* Get the list position of an engine.
|
||||||
* Used when sorting a list of engines.
|
* Used when sorting a list of engines.
|
||||||
|
|
|
@ -57,7 +57,6 @@ void UnloadWagonOverrides();
|
||||||
void UnloadCustomEngineSprites();
|
void UnloadCustomEngineSprites();
|
||||||
|
|
||||||
void ResetEngineListOrder();
|
void ResetEngineListOrder();
|
||||||
EngineID GetRailVehAtPosition(EngineID pos);
|
|
||||||
uint16 ListPositionOfEngine(EngineID engine);
|
uint16 ListPositionOfEngine(EngineID engine);
|
||||||
void AlterRailVehListOrder(EngineID engine, EngineID target);
|
void AlterRailVehListOrder(EngineID engine, EngineID target);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue