RigsOfRods / rigs-of-rods

Main development repository for Rigs of Rods soft-body physics simulator
https://www.rigsofrods.org
GNU General Public License v3.0
991 stars 175 forks source link

Electric car bugfixes. #3022

Closed ohlidalp closed 1 year ago

ohlidalp commented 1 year ago

Fixes both issues reported in #3021

Note you still need to turn on engine ignition and hit starter.

ohlidalp commented 1 year ago

I originally tested with "arcade controls" enabled which auto-starts the engine when pressing forward/reverse. Now I also fixed the manual starter control.

Looking at the "backspace reset" code, apparently the author intended to restart the engine in case it died, and as a side effect it resets the RPM to idle value: https://github.com/RigsOfRods/rigs-of-rods/blob/master/source/main/physics/Actor.cpp#L1615-L1622