use getposalt instead of position here fixes

http://bmrf.me/vbforums/showthread.php?11562-Smelting-Tin-BUG&p=75405#post75405
This commit is contained in:
[VB]AWOL
2013-12-11 08:17:12 -06:00
parent a37a78e251
commit 51c7d3fc87
6 changed files with 14 additions and 10 deletions

View File

@@ -42,7 +42,7 @@ _canDo = (!r_drag_sqf and !r_player_unconscious and !_onLadder);
// Need Near Requirements
_needNear = getArray (configFile >> _baseClass >> _item >> "ItemActions" >> _crafting >> "neednearby");
if("fire" in _needNear) then {
_isNear = {inflamed _x} count (position player nearObjects _distance);
_isNear = {inflamed _x} count (getPosATL player nearObjects _distance);
if(_isNear == 0) then {
_abort = true;
_reason = "fire";