Gargoyles.lua: fix last frame comparisons
This commit is contained in:
parent
44a1e691f3
commit
d2642eaf59
|
@ -60,8 +60,6 @@ function main()
|
||||||
backy = camy
|
backy = camy
|
||||||
Xspd = Xpos-XposLast
|
Xspd = Xpos-XposLast
|
||||||
Yspd = Ypos-YposLast
|
Yspd = Ypos-YposLast
|
||||||
XposLast = Xpos
|
|
||||||
YposLast = Ypos
|
|
||||||
facing = AND(rb(GolBase+0x48),2) -- object flag 1
|
facing = AND(rb(GolBase+0x48),2) -- object flag 1
|
||||||
|
|
||||||
Background()
|
Background()
|
||||||
|
@ -71,9 +69,6 @@ function main()
|
||||||
HUD()
|
HUD()
|
||||||
RoomTime()
|
RoomTime()
|
||||||
Input()
|
Input()
|
||||||
|
|
||||||
rndlast = rnd1
|
|
||||||
workinglast = working
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function RoomTime()
|
function RoomTime()
|
||||||
|
@ -440,6 +435,11 @@ event.onframeend(function()
|
||||||
end
|
end
|
||||||
|
|
||||||
emu.setlagcount(lagcount)
|
emu.setlagcount(lagcount)
|
||||||
|
|
||||||
|
rndlast = rnd1
|
||||||
|
workinglast = working
|
||||||
|
XposLast = Xpos
|
||||||
|
YposLast = Ypos
|
||||||
end)
|
end)
|
||||||
|
|
||||||
while true do
|
while true do
|
||||||
|
|
Loading…
Reference in New Issue