c172p-team / c172p

A high detailed version of the Cessna 172P aircraft for FlightGear
GNU General Public License v2.0
82 stars 43 forks source link

Bug in fuel logic #1372

Closed wlbragg closed 3 years ago

wlbragg commented 3 years ago

Fixes #1371

@legoboyvdlp this fixes and issue where when in the "Allow Damage" mode and you crash (like nose and prop damage, front gear) the engine doesn't stop anymore. This fixes it. See the #1371 issue for explanation and if you know why the original logic doesn't work, please explain.

Anyway, this new logic does work and once merged needs to be cherry picked to 2020.3

legoboyvdlp commented 3 years ago

Tested this by crashing the Cessna into the ground nose first. The engine quit. Looks good to me!

legoboyvdlp commented 3 years ago

I cherry-picked it to 2020.3 ... but I'm not sure if I did it right ... can you check it to make sure please? Thanks