MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SetMaxSpeed

Method SetMaxSpeed

src/order_base.h:231–231  ·  view source on GitHub ↗

* Set the maxmimum speed in km-ish/h a vehicle is allowed to reach on the way to the * destination. * @param speed Speed to be set. */

Source from the content-addressed store, hash-verified

229 * @param speed Speed to be set.
230 */
231 inline void SetMaxSpeed(uint16_t speed) { this->max_speed = speed; }
232
233 bool ShouldStopAtStation(const Vehicle *v, StationID station) const;
234 bool CanLoadOrUnload() const;

Callers 1

ChangeTimetableFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected