Skip to content

Commit b71da49

Browse files
committed
Use stats.battles to track current round
1 parent 2fd5bb0 commit b71da49

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

SerialPrograms/Source/PokemonLZA/Programs/PokemonLZA_RestaurantFarmer.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,6 @@ void RestaurantFarmer::program(SingleSwitchProgramEnvironment& env, ProControlle
377377

378378
// auto lobby = env.console.video().snapshot();
379379

380-
uint32_t current_round = 0;
381380
while (true){
382381
send_program_status_notification(env, NOTIFICATION_STATUS_UPDATE);
383382
if (NUM_ROUNDS != 0 && stats.battles >= NUM_ROUNDS) {
@@ -388,7 +387,6 @@ void RestaurantFarmer::program(SingleSwitchProgramEnvironment& env, ProControlle
388387
break;
389388
}
390389
run_battle(env, context);
391-
current_round++;
392390
}
393391

394392
send_program_finished_notification(env, NOTIFICATION_PROGRAM_FINISH);

0 commit comments

Comments
 (0)