mirror of
https://github.com/notwa/mm
synced 2024-11-05 01:29:03 -08:00
little tweaks
This commit is contained in:
parent
12daa5e493
commit
4b234fc26a
1 changed files with 3 additions and 2 deletions
|
@ -13,7 +13,7 @@ while true do
|
||||||
|
|
||||||
for at, ai, addr in iter_actors() do
|
for at, ai, addr in iter_actors() do
|
||||||
local actor_number = R2(addr)
|
local actor_number = R2(addr)
|
||||||
local name = actor_names[actor_number]
|
local name = actor_names[actor_number] or "[error]"
|
||||||
local size = R4(addr - 0xC) -- read linked list data above the actor
|
local size = R4(addr - 0xC) -- read linked list data above the actor
|
||||||
if actor_number == 0x00D then
|
if actor_number == 0x00D then
|
||||||
epona_addr = addr
|
epona_addr = addr
|
||||||
|
@ -23,7 +23,7 @@ while true do
|
||||||
local diff = addr - epona_addr
|
local diff = addr - epona_addr
|
||||||
if diff >= 0 and diff < offset then
|
if diff >= 0 and diff < offset then
|
||||||
offset = diff
|
offset = diff
|
||||||
nearest.name = name or "[error]"
|
nearest.name = name
|
||||||
nearest.addr = addr
|
nearest.addr = addr
|
||||||
nearest.at = at
|
nearest.at = at
|
||||||
nearest.ai = ai
|
nearest.ai = ai
|
||||||
|
@ -41,6 +41,7 @@ while true do
|
||||||
T_BR(0, 0, 'white', 'Type, Index: %2i, %2i', nearest.at, nearest.ai)
|
T_BR(0, 0, 'white', 'Type, Index: %2i, %2i', nearest.at, nearest.ai)
|
||||||
else
|
else
|
||||||
T_BR(0, 0, 'yellow', 'Epona not found')
|
T_BR(0, 0, 'yellow', 'Epona not found')
|
||||||
|
epona_addr = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
emu.frameadvance()
|
emu.frameadvance()
|
||||||
|
|
Loading…
Reference in a new issue