From 6ec324cf10e218e49ee9cdf423979d5b17f3da1e Mon Sep 17 00:00:00 2001 From: icomrade Date: Thu, 18 Feb 2016 08:25:22 -0500 Subject: [PATCH] should fix #1564 --- SQF/dayz_code/compile/fn_temperatur.sqf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SQF/dayz_code/compile/fn_temperatur.sqf b/SQF/dayz_code/compile/fn_temperatur.sqf index 300e29bce..5f19d1461 100644 --- a/SQF/dayz_code/compile/fn_temperatur.sqf +++ b/SQF/dayz_code/compile/fn_temperatur.sqf @@ -61,7 +61,8 @@ Missing: //fire private ["_fireplaces"]; - _fireplaces = nearestObjects [player, ["Land_Fire","Land_Campfire"], 8]; + _pPos = [player] call FNC_GetPos; + _fireplaces = nearestObjects [_pPos, ["Land_Fire","Land_Campfire"], 8]; if(({inflamed _x} count _fireplaces) > 0 && !_isinvehicle ) then { //Math: factor * 1 / (0.5*(distance max 1)^2) 0.5 = 12.5% of the factor effect in a distance o 4 meters _difference = _difference + (_fire_factor /(0.5*((player distance (_fireplaces select 0)) max 1)^2));