Update from KeldorKatarn branch
This approximately corresponds to 971ba4928a5c7c7916fea55d91a3b6dd5bba140c, excluding the different virtual train build GUI, but including the basic changes to the original train build GUI for multiplayer to work. Fixup
This commit is contained in:
@@ -295,6 +295,16 @@ struct GroundVehicle : public SpecializedVehicle<T, Type> {
|
||||
*/
|
||||
inline void ClearFreeWagon() { ClrBit(this->subtype, GVSF_FREE_WAGON); }
|
||||
|
||||
/**
|
||||
* Set a vehicle as a virtual vehicle.
|
||||
*/
|
||||
inline void SetVirtual() { SetBit(this->subtype, GVSF_VIRTUAL); }
|
||||
|
||||
/**
|
||||
* Clear a vehicle from being a virtual vehicle.
|
||||
*/
|
||||
inline void ClearVirtual() { ClrBit(this->subtype, GVSF_VIRTUAL); }
|
||||
|
||||
/**
|
||||
* Set a vehicle as a multiheaded engine.
|
||||
*/
|
||||
@@ -329,6 +339,12 @@ struct GroundVehicle : public SpecializedVehicle<T, Type> {
|
||||
*/
|
||||
inline bool IsMultiheaded() const { return HasBit(this->subtype, GVSF_MULTIHEADED); }
|
||||
|
||||
/**
|
||||
* Tell if we are dealing with a virtual vehicle (used for templates).
|
||||
* @return True if the vehicle is a virtual vehicle.
|
||||
*/
|
||||
inline bool IsVirtual() const { return HasBit(this->subtype, GVSF_VIRTUAL); }
|
||||
|
||||
/**
|
||||
* Tell if we are dealing with the rear end of a multiheaded engine.
|
||||
* @return True if the engine is the rear part of a dualheaded engine.
|
||||
|
||||
Reference in New Issue
Block a user