Home
last modified time | relevance | path

Searched refs:station_ahead (Results 1 – 3 of 3) sorted by relevance

/dports/games/openttd/openttd-12.1/src/
H A Dtrain.h64 int GetTrainStopLocation(StationID station_id, TileIndex tile, const Train *v, int *station_ahead, …
H A Dtrain_cmd.cpp259 int GetTrainStopLocation(StationID station_id, TileIndex tile, const Train *v, int *station_ahead, … in GetTrainStopLocation() argument
262 *station_ahead = st->GetPlatformLength(tile, DirToDiagDir(v->direction)) * TILE_SIZE; in GetTrainStopLocation()
386 int station_ahead; in GetCurrentMaxSpeed() local
388 int stop_at = GetTrainStopLocation(sid, this->tile, this, &station_ahead, &station_length); in GetCurrentMaxSpeed()
392 int distance_to_go = station_ahead / TILE_SIZE - (station_length - stop_at) / TILE_SIZE; in GetCurrentMaxSpeed()
H A Dstation_cmd.cpp3338 int station_ahead; in VehicleEnter_Station() local
3340 …int stop = GetTrainStopLocation(station_id, tile, Train::From(v), &station_ahead, &station_length); in VehicleEnter_Station()
3346 if (stop + station_ahead - (int)TILE_SIZE >= station_length) return VETSB_CONTINUE; in VehicleEnter_Station()