Skip to content

Commit fef266e

Browse files
committed
Use player info when in a game, and CSS info when not
1 parent 0b8a1a7 commit fef266e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

source/melee.lua

+5-7
Original file line numberDiff line numberDiff line change
@@ -540,13 +540,11 @@ end
540540
function melee.getPlayer(port)
541541
if not memory.player then return end
542542

543-
if not melee.isInGame() then
544-
if melee.isSinglePlayerGame() and port == memory.menu.player_one_port + 1 then
545-
-- Single player games in CSS screen always use PORT 1 character info no matter what port is controlling the menus
546-
return memory.player[1].select
547-
else
548-
return memory.player[port].select
549-
end
543+
if melee.isSinglePlayerGame() and port == memory.menu.player_one_port + 1 then
544+
-- Single player games in CSS screen always use PORT 1 character info no matter what port is controlling the menus
545+
return memory.player[1].select
546+
else if not melee.isInGame() then
547+
return memory.player[port].select
550548
end
551549

552550
return memory.player[port]

0 commit comments

Comments
 (0)