Merge pull request #779 from Torndeco/patch-1

Very Minor Code Change
This commit is contained in:
vbawol
2013-11-24 15:31:59 -08:00

View File

@@ -101,7 +101,8 @@ _object_damage = {
_object_killed = { _object_killed = {
private["_hitpoints","_array","_hit","_selection","_key","_damage"]; private["_hitpoints","_array","_hit","_selection","_key","_damage"];
_hitpoints = _object call vehicle_getHitpoints; _hitpoints = _object call vehicle_getHitpoints;
_damage = damage _object; //_damage = damage _object;
_damage = 1;
_array = []; _array = [];
{ {
_hit = [_object,_x] call object_getHit; _hit = [_object,_x] call object_getHit;
@@ -109,8 +110,7 @@ _object_killed = {
if (_hit > 0) then {_array set [count _array,[_selection,_hit]]}; if (_hit > 0) then {_array set [count _array,[_selection,_hit]]};
_hit = 1; _hit = 1;
_object setHit ["_selection", _hit] _object setHit ["_selection", _hit]
} forEach _hitpoints; } forEach _hitpoints
_damage = 1;
if (_objectID == "0") then { if (_objectID == "0") then {
_key = format["CHILD:306:%1:%2:%3:",_uid,_array,_damage]; _key = format["CHILD:306:%1:%2:%3:",_uid,_array,_damage];