Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenTTD/OpenTTD
/ InitializeVehicles
Function
InitializeVehicles
src/vehicle.cpp:668–672 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
666
static AutoreplaceMap _vehicles_to_autoreplace;
667
668
void InitializeVehicles()
669
{
670
_vehicles_to_autoreplace.clear();
671
ResetVehicleHash();
672
}
673
674
uint CountVehiclesInChain(const Vehicle *v)
675
{
Callers
1
InitializeGame
Function · 0.85
Calls
2
ResetVehicleHash
Function · 0.85
clear
Method · 0.45
Tested by
no test coverage detected