Also prevent Fury Bike chao key blastin (resolves #1275)

Fury Bike ID handled by #define now
This commit is contained in:
toaster 2024-04-14 21:41:15 +01:00
parent 76becc7579
commit 9d5860d38d
4 changed files with 9 additions and 3 deletions

View file

@ -1300,7 +1300,7 @@ void M_SetNetUnlocked(void)
{
for (i = 0; i < MAXUNLOCKABLES; i++)
{
if (unlockables[i].conditionset == 55)
if (unlockables[i].conditionset == CH_FURYBIKE)
continue;
netUnlocked[i] = true;
@ -3094,7 +3094,7 @@ char *M_BuildConditionSetString(UINT16 unlockid)
}
}
if (usedTourney && unlockables[unlockid].conditionset == 55 && gamedata->unlocked[unlockid] == false)
if (usedTourney && unlockables[unlockid].conditionset == CH_FURYBIKE && gamedata->unlocked[unlockid] == false)
{
strcpy(message, "Power shrouds this challenge in darkness... (Return here without Tournament Mode!)\0");
}

View file

@ -281,6 +281,8 @@ typedef enum
#endif
#define challengegridloops (gamedata->challengegridwidth >= CHALLENGEGRIDLOOPWIDTH)
#define CH_FURYBIKE 55
// See also M_PlayMenuJam
typedef enum {
GDMUSIC_NONE = 0,

View file

@ -109,7 +109,7 @@ void f_tournament()
{
if (!unlockables[i].conditionset)
continue;
if (unlockables[i].conditionset == 55)
if (unlockables[i].conditionset == CH_FURYBIKE)
continue;
if (gamedata->unlocked[i])
continue;

View file

@ -468,6 +468,10 @@ boolean M_CanKeyHiliTile(void)
return false;
}
// Fury Bike
if (unlockables[challengesmenu.currentunlock].conditionset == CH_FURYBIKE)
return false;
// All good!
return true;
}