Skip to content

Commit 732fdd9

Browse files
committed
Don't show the stock icon when not in a game
1 parent 6406191 commit 732fdd9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

source/melee.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,14 @@ function melee.getCharacterID(port)
208208
end
209209

210210
function melee.getStockTexture(id, skin)
211-
if not textures.stocks[id] or not textures.stocks[id][skin] then
211+
if memory.menu ~= 2 or not textures.stocks[id] or not textures.stocks[id][skin] then
212212
return textures.stocks[0x21]
213213
end
214214
return textures.stocks[id][skin]
215215
end
216216

217217
function melee.getSeriesTexture(id)
218-
if not textures.series[id] then
218+
if memory.menu ~= 2 or not textures.series[id] then
219219
return textures.series[0x21]
220220
end
221221
return textures.series[id]

source/modules/games/GALE01-2.lua

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ for id, address in ipairs(player_static_addresses) do
8080
end
8181
end
8282

83+
game.memorymap[0x80479D33] = { type = "byte", name = "menu" }
8384
game.memorymap[0x804807C8] = { type = "bool", name = "teams" }
8485

8586
game.memorymap[0x806E490A] = {

0 commit comments

Comments
 (0)