From 8d545d14a1e060b89820d4bf73317b3503bdd563 Mon Sep 17 00:00:00 2001 From: ebayShopper Date: Mon, 20 Mar 2017 16:46:11 -0400 Subject: [PATCH] Fix dayz_lastSave variable again Continuation of bca17aa. This variable is set in player_forceSave and uses diag_tickTime. Vanilla commits: https://github.com/DayZMod/DayZ/commit/f8c88502e85ba9b2070d313b8d25a6e2a6fb8332 https://github.com/DayZMod/DayZ/commit/98af0ed8b936ea112de563f282f8177c8c1fb4cc --- CHANGE LOG 1.0.6.2.txt | 1 + SQF/dayz_code/init/variables.sqf | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGE LOG 1.0.6.2.txt b/CHANGE LOG 1.0.6.2.txt index e6f26b146..cce729b64 100644 --- a/CHANGE LOG 1.0.6.2.txt +++ b/CHANGE LOG 1.0.6.2.txt @@ -9,6 +9,7 @@ [FIXED] Smoke and grenade tripwires now require a grenade to rearm after triggering. [FIXED] Player no longer does medic animation after triggering a single use trap. [FIXED] Removing a trap with no room in your gear will no longer delete the trap. +[FIXED] Player_forceSave is now called correctly when the abort menu is opened. It was previously using the wrong variable and time. [NOTE] Fixes below are included in the mission file and server pbo as part of server package 1.0.6.1A (March 10th 2017) [FIXED] Fixed food and drink going down 10x faster from melee and other "working" actions. diff --git a/SQF/dayz_code/init/variables.sqf b/SQF/dayz_code/init/variables.sqf index 8d1694da0..29b062d5a 100644 --- a/SQF/dayz_code/init/variables.sqf +++ b/SQF/dayz_code/init/variables.sqf @@ -604,7 +604,7 @@ if (!isDedicated) then { dayz_disVisual = 0; dayz_firedCooldown = 0; dayz_damageCounter = time; - dayz_lastSave = time; + dayz_lastSave = diag_tickTime; dayz_isSwimming = true; dayz_currentDay = 0; dayz_hasLight = false;