Skip to content

Commit

Permalink
Merge pull request #1 from wts42/master
Browse files Browse the repository at this point in the history
Change memory.read_s16_le(0x1497) to memory.readbyte(0x1497)
  • Loading branch information
mam91 authored Apr 2, 2018
2 parents 78b0cab + bb6e8aa commit d5ec3aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions neat-mario/game.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function _M.getScore()
end

function _M.getMarioHit(alreadyHit)
local timer = memory.read_s16_le(0x1497)
local timer = memory.readbyte(0x1497)
if timer > 0 then
if alreadyHit == false then
return true
Expand All @@ -39,7 +39,7 @@ function _M.getMarioHit(alreadyHit)
end

function _M.getMarioHitTimer()
local timer = memory.read_s16_le(0x1497)
local timer = memory.readbyte(0x1497)
return timer
end

Expand Down Expand Up @@ -149,4 +149,4 @@ function _M.clearJoypad()
joypad.set(controller)
end

return _M
return _M

0 comments on commit d5ec3aa

Please sign in to comment.