Jump to content

Vehicles.Update.Heater function drains battery when engine running


Raath

Recommended Posts

Poking about in server/vehicles/vehicles.lua I noticed that int he Vehicles.Update.Heater function at line 503 it states

 

	if part:getModData().active and vehicle:isEngineRunning() then
		VehicleUtils.chargeBattery(vehicle, -0.000035 * elapsedMinutes)
	end

Should it not be and not vehicle:isEngineRunning() to drain the battery?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...