Sets collectibleFlag whether cvar is on or not to prevent duping.

This commit is contained in:
Christopher Leggett 2022-05-20 21:48:55 -04:00
commit 8f30423a55
No known key found for this signature in database
GPG key ID: 7093AE5FF7037D79

View file

@ -624,9 +624,7 @@ void EnTk_Dig(EnTk* this, GlobalContext* globalCtx) {
EnItem00* reward = Item_DropCollectible(globalCtx, &rewardPos, rewardParams[this->currentReward]); EnItem00* reward = Item_DropCollectible(globalCtx, &rewardPos, rewardParams[this->currentReward]);
if (this->currentReward == 4) { if (this->currentReward == 4) {
if (CVar_GetS32("gGravediggingTourFix", 0) != 0) { reward->collectibleFlag = 0x19;
reward->collectibleFlag = 0x19;
}
} }
} }
} }