Codechange: Use EnumBitSet for VehStates. (#13755)
Renamed from VehStatus because pluralising that is weird.
This commit is contained in:
@@ -60,7 +60,7 @@ void GroundVehicle<T, Type>::PowerChanged()
|
||||
max_te /= 256; // Tractive effort is a [0-255] coefficient.
|
||||
if (this->gcache.cached_power != total_power || this->gcache.cached_max_te != max_te) {
|
||||
/* Stop the vehicle if it has no power. */
|
||||
if (total_power == 0) this->vehstatus |= VS_STOPPED;
|
||||
if (total_power == 0) this->vehstatus.Set(VehState::Stopped);
|
||||
|
||||
this->gcache.cached_power = total_power;
|
||||
this->gcache.cached_max_te = max_te;
|
||||
|
||||
Reference in New Issue
Block a user