Searched refs:cached_total_length (Results 1 – 11 of 11) sorted by relevance
282 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()
497 …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()
42 uint16 cached_total_length; ///< Length of the whole vehicle (valid only for the first engine). member
114 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()
222 v->gcache.cached_total_length = 0; in RoadVehUpdateCache()237 v->gcache.cached_total_length += u->gcache.cached_veh_length; in RoadVehUpdateCache()
331 SetDParam(0, CeilDiv(u->gcache.cached_total_length * 10, TILE_SIZE)); in DrawVehicleInDepot()
1305 …int r = a->GetGroundVehicleCache()->cached_total_length - b->GetGroundVehicleCache()->cached_total… in VehicleLengthSorter()
1594 …int overhang = front->GetGroundVehicleCache()->cached_total_length - st->GetPlatformLength(front->… in UpdateLoadUnloadTicks()
247 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()
59 return v->IsGroundVehicle() ? v->GetGroundVehicleCache()->cached_total_length : -1; in GetLength()
2714 …<uint8>(_settings_game.vehicle.max_train_length, CeilDiv(t->gcache.cached_total_length, TILE_SIZE)… in AfterLoadGame()