gforces: fix for when there's no player

This commit is contained in:
Nicolás Badano 2015-01-17 15:18:11 -03:00
parent e216a33574
commit 3fa6f1b0c9

View File

@ -7,6 +7,11 @@ _interval = time - GVAR(lastUpdateTime);
// Update the g-forces at constant game time intervals
if (_interval < INTERVAL) exitWith {};
if (isNull ACE_player) exitWith {};
if !(alive ACE_player) exitWith {};
GVAR(lastUpdateTime) = time;
/*if !(vehicle ACE_player isKindOf "Air") exitWith {