We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5adb94 commit 559efd9Copy full SHA for 559efd9
1 file changed
SWR_AP_Client/SWR.cpp
@@ -478,16 +478,22 @@ namespace SWRGame
478
479
void GiveCourseUnlock(int circuit)
480
{
481
- int curUnlock = swrSaveData->trackUnlocks[circuit];
482
- int curFlag = 0;
483
- for (int i = 0; i < 7; i++)
+ switch (circuit)
484
485
- curFlag = 1 << i;
486
- if ((curUnlock & curFlag) == 0)
487
- {
488
- swrSaveData->trackUnlocks[circuit] |= curFlag;
489
- return;
490
- }
+ case AMATEUR_CIRCUIT:
+ saveManager.GiveAmateurCourse();
+ break;
+ case SEMIPRO_CIRCUIT:
+ saveManager.GiveSemiproCourse();
+ case GALACTIC_CIRCUIT:
+ saveManager.GiveGalacticCourse();
491
492
+ case INVITATIONAL_CIRCUIT:
493
+ saveManager.GiveInvitationalCourse();
494
495
+ default:
496
497
}
498
499
0 commit comments