Skip to content

Commit

Permalink
Enabled substitution buttons after goal is scored
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan committed Nov 8, 2022
1 parent 8a59320 commit ecfea38
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion mslrb2015/RefreshButon.pde
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,11 @@ void refreshbutton_game_stopped()
buttonCdisable();
bTeamBcmds[CMDID_TEAM_KICKOFF].enable();
bTeamBcmds[CMDID_TEAM_GOAL].disable();
bCommoncmds[CMDID_COMMON_HALFTIME].enable();
bCommoncmds[CMDID_COMMON_HALFTIME].enable();
if ((teamA.nOfSubstitutions + teamB.nOfSubstitutions) < 6)
bCommoncmds[CMDID_COMMON_SUBS].enable();
else
bCommoncmds[CMDID_COMMON_SUBS].disable();
}
else if(bTeamBcmds[CMDID_TEAM_GOAL].isActive()) {
buttonAdisable();
Expand All @@ -211,6 +215,10 @@ void refreshbutton_game_stopped()
bTeamAcmds[CMDID_TEAM_KICKOFF].enable();
bTeamAcmds[CMDID_TEAM_GOAL].disable();
bCommoncmds[CMDID_COMMON_HALFTIME].enable();
if ((teamA.nOfSubstitutions + teamB.nOfSubstitutions) < 6)
bCommoncmds[CMDID_COMMON_SUBS].enable();
else
bCommoncmds[CMDID_COMMON_SUBS].disable();
}
else {
if(!StateMachine.setpiece) {
Expand Down

0 comments on commit ecfea38

Please sign in to comment.