Engine: bug fix

This commit is contained in:
Sidi Liang 2020-02-16 15:53:33 +08:00
parent 5bd6ffd324
commit cbf50aaa4e
No known key found for this signature in database
GPG Key ID: 79F0A6B20B72F42F
1 changed files with 2 additions and 1 deletions

View File

@ -173,14 +173,15 @@ var Engine = {
},
stopEngine: func(){
me.engineTimer.stop();
me.rpm = 0;
me.torque = 0;
me.outputForce = 0;
outputForce(0);
me.activePower_kW = 0;
me.runningState = 0;
me.engineSwitch.switchDisconnect();
props.getNode("/",1).setValue("/controls/engines/engine/started",0);
me.engineTimer.stop();
},
debugPrint: func(){