Home
last modified time | relevance | path

Searched refs:cached_total_length (Results 1 – 11 of 11) sorted by relevance

/dports/games/openttd/openttd-12.1/src/
H A Droadstop.cpp282 this->occupied -= rv->gcache.cached_total_length; in Leave()
295 this->occupied += rv->gcache.cached_total_length; in Enter()
371 this->occupied += (*it)->gcache.cached_total_length; in Rebuild()
H A Dautoreplace_cmd.cpp497 …uint16 old_total_length = CeilDiv(Train::From(old_head)->gcache.cached_total_length, TILE_SIZE) * … in ReplaceChain()
557 …if (cost.Succeeded() && wagon_removal && new_head->gcache.cached_total_length > old_total_length) … in ReplaceChain()
574 …s.GetErrorMessage() == STR_ERROR_TRAIN_TOO_LONG : new_head->gcache.cached_total_length > old_total… in ReplaceChain()
591 …assert(new_head->gcache.cached_total_length <= _settings_game.vehicle.max_train_length * TILE_SIZE… in ReplaceChain()
H A Dground_vehicle.hpp42 uint16 cached_total_length; ///< Length of the whole vehicle (valid only for the first engine). member
H A Dtrain_cmd.cpp114 this->gcache.cached_total_length = 0; in ConsistChanged()
226 this->gcache.cached_total_length += u->gcache.cached_veh_length; in ConsistChanged()
268 if (v->gcache.cached_total_length >= *station_length) { in GetTrainStopLocation()
281 stop = v->gcache.cached_total_length; in GetTrainStopLocation()
285 stop = *station_length - (*station_length - v->gcache.cached_total_length) / 2; in GetTrainStopLocation()
H A Droadveh_cmd.cpp222 v->gcache.cached_total_length = 0; in RoadVehUpdateCache()
237 v->gcache.cached_total_length += u->gcache.cached_veh_length; in RoadVehUpdateCache()
H A Ddepot_gui.cpp331 SetDParam(0, CeilDiv(u->gcache.cached_total_length * 10, TILE_SIZE)); in DrawVehicleInDepot()
H A Dvehicle_gui.cpp1305 …int r = a->GetGroundVehicleCache()->cached_total_length - b->GetGroundVehicleCache()->cached_total… in VehicleLengthSorter()
H A Deconomy.cpp1594 …int overhang = front->GetGroundVehicleCache()->cached_total_length - st->GetPlatformLength(front->… in UpdateLoadUnloadTicks()
/dports/games/openttd/openttd-12.1/src/pathfinder/yapf/
H A Dyapf_costrail.hpp247 assert(v->gcache.cached_total_length != 0); in PlatformLengthPenalty()
248 int missing_platform_length = CeilDiv(v->gcache.cached_total_length, TILE_SIZE) - platform_length; in PlatformLengthPenalty()
/dports/games/openttd/openttd-12.1/src/script/api/
H A Dscript_vehicle.cpp59 return v->IsGroundVehicle() ? v->GetGroundVehicleCache()->cached_total_length : -1; in GetLength()
/dports/games/openttd/openttd-12.1/src/saveload/
H A Dafterload.cpp2714 …<uint8>(_settings_game.vehicle.max_train_length, CeilDiv(t->gcache.cached_total_length, TILE_SIZE)… in AfterLoadGame()