File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,11 @@ void refreshbutton_game_stopped()
202
202
buttonCdisable();
203
203
bTeamBcmds[CMDID_TEAM_KICKOFF ]. enable();
204
204
bTeamBcmds[CMDID_TEAM_GOAL ]. disable();
205
- bCommoncmds[CMDID_COMMON_HALFTIME ]. enable();
205
+ bCommoncmds[CMDID_COMMON_HALFTIME ]. enable();
206
+ if ((teamA. nOfSubstitutions + teamB. nOfSubstitutions) < 6 )
207
+ bCommoncmds[CMDID_COMMON_SUBS ]. enable();
208
+ else
209
+ bCommoncmds[CMDID_COMMON_SUBS ]. disable();
206
210
}
207
211
else if (bTeamBcmds[CMDID_TEAM_GOAL ]. isActive()) {
208
212
buttonAdisable();
@@ -211,6 +215,10 @@ void refreshbutton_game_stopped()
211
215
bTeamAcmds[CMDID_TEAM_KICKOFF ]. enable();
212
216
bTeamAcmds[CMDID_TEAM_GOAL ]. disable();
213
217
bCommoncmds[CMDID_COMMON_HALFTIME ]. enable();
218
+ if ((teamA. nOfSubstitutions + teamB. nOfSubstitutions) < 6 )
219
+ bCommoncmds[CMDID_COMMON_SUBS ]. enable();
220
+ else
221
+ bCommoncmds[CMDID_COMMON_SUBS ]. disable();
214
222
}
215
223
else {
216
224
if (! StateMachine . setpiece) {
You can’t perform that action at this time.
0 commit comments