From d2642eaf5938b98c9b3294d5790585ce97244f1b Mon Sep 17 00:00:00 2001 From: feos <feos-theos@yandex.ru> Date: Thu, 19 Jan 2017 14:50:15 +0300 Subject: [PATCH] Gargoyles.lua: fix last frame comparisons --- Assets/Lua/Genesis/Gargoyles.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Assets/Lua/Genesis/Gargoyles.lua b/Assets/Lua/Genesis/Gargoyles.lua index 27adec031b..cae3a84fbc 100644 --- a/Assets/Lua/Genesis/Gargoyles.lua +++ b/Assets/Lua/Genesis/Gargoyles.lua @@ -60,8 +60,6 @@ function main() backy = camy Xspd = Xpos-XposLast Yspd = Ypos-YposLast - XposLast = Xpos - YposLast = Ypos facing = AND(rb(GolBase+0x48),2) -- object flag 1 Background() @@ -71,9 +69,6 @@ function main() HUD() RoomTime() Input() - - rndlast = rnd1 - workinglast = working end function RoomTime() @@ -440,6 +435,11 @@ event.onframeend(function() end emu.setlagcount(lagcount) + + rndlast = rnd1 + workinglast = working + XposLast = Xpos + YposLast = Ypos end) while true do