Skip to content

Commit

Permalink
Bugfix/cleanup in HandleDamage
Browse files Browse the repository at this point in the history
  • Loading branch information
pterolatypus committed Jan 10, 2022
1 parent da82e25 commit 61d4174
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions addons/medical_engine/functions/fnc_handleDamage.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
*
* Public: No
*/
// for travis
#define HIT_STRUCTURAL QGVAR($#structural)

params ["_unit", "_selection", "_damage", "_shooter", "_ammo", "_hitPointIndex", "_instigator", "_hitpoint"];

// HD sometimes triggers for remote units - ignore.
Expand Down Expand Up @@ -76,7 +73,7 @@ if (_hitPoint isEqualTo "ace_hdbracket") exitWith {
_unit setVariable [QEGVAR(medical,lastDamageSource), _shooter];
_unit setVariable [QEGVAR(medical,lastInstigator), _instigator];

private _damageStructural = _unit getVariable [HIT_STRUCTURAL, 0];
private _damageStructural = _unit getVariable [QGVAR($#structural), [0,0]];

// --- Head
private _damageHead = [
Expand Down

0 comments on commit 61d4174

Please sign in to comment.