Sanatize damage value used for blood creation (#4574)

Fix #4571
This commit is contained in:
PabstMirror 2016-10-20 12:43:52 -05:00 committed by Glowbal
parent e5c59b56fb
commit f2746891af

View File

@ -23,6 +23,7 @@
#define OFFSET 0.25
params ["_unit", "_dir", "_damage"];
_damage = _damage min 1;
private _distanceBetweenDrops = DISTANCE_BETWEEN_DROPS * _damage;
private _offset = OFFSET + _distanceBetweenDrops;