From fb902eb819e93209db174ea55356b9e069c8b5e4 Mon Sep 17 00:00:00 2001 From: Florian Kinder Date: Mon, 17 Feb 2014 01:15:13 +0100 Subject: [PATCH] Fixed drink/eat refs #1132 --- SQF/dayz_code/actions/player_drink.sqf | 2 +- SQF/dayz_code/actions/player_eat.sqf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/actions/player_drink.sqf b/SQF/dayz_code/actions/player_drink.sqf index 5d88c7a66..2176dc74c 100644 --- a/SQF/dayz_code/actions/player_drink.sqf +++ b/SQF/dayz_code/actions/player_drink.sqf @@ -65,7 +65,7 @@ if (_hasoutput && !_invehicle) then { _item addMagazineCargoGlobal [_itemtodrop,1]; }; -if (_invehicle) then { +if (_hasoutput && _invehicle) then { sleep 2; (vehicle player) addMagazineCargoGlobal [_itemtodrop,1]; }; diff --git a/SQF/dayz_code/actions/player_eat.sqf b/SQF/dayz_code/actions/player_eat.sqf index 4b2938c50..38ec94dfb 100644 --- a/SQF/dayz_code/actions/player_eat.sqf +++ b/SQF/dayz_code/actions/player_eat.sqf @@ -65,7 +65,7 @@ if (_hasoutput && !_invehicle) then { _item addMagazineCargoGlobal [_itemtodrop,1]; }; -if (_invehicle) then { +if (_hasoutput && _invehicle) then { sleep 2; (vehicle player) addMagazineCargoGlobal [_itemtodrop,1]; };