1dot13 / source

Source code for the game executable of the Jagged Alliance 2 v1.13 project
102 stars 18 forks source link

Vehicle removal on death fix #210

Closed andrzejfalkowski closed 1 year ago

andrzejfalkowski commented 1 year ago

Issue: https://github.com/1dot13/source/issues/94

When ramming structures with a vehicle, damage to the vehicle was applied before the movement was completed and the level data was updated, so on death we'd try to remove its corpse from an empty tile. To fix this, we can store vehicle damage and resolve it after the current grid movement is completed.