Skip to content

Commit

Permalink
Only set port to human if not a cpu
Browse files Browse the repository at this point in the history
  • Loading branch information
CJ5518 authored Aug 19, 2023
1 parent c98c26b commit 101629c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion melee/menuhelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def choose_character(character, gamestate, controller, cpu_level=0, costume=2, s
return

# Make sure the port is set to "Human"
if gamestate.players[controlling_port].controller_status != enums.ControllerStatus.CONTROLLER_HUMAN:
if gamestate.players[controlling_port].controller_status != enums.ControllerStatus.CONTROLLER_HUMAN and cpu_level == 0:
MenuHelper.change_controller_status(controller, gamestate, controlling_port, enums.ControllerStatus.CONTROLLER_HUMAN)
return

Expand Down

0 comments on commit 101629c

Please sign in to comment.