But do make them disappear once they're collected!

This commit is contained in:
Josh Bodner 2022-05-22 22:27:18 -07:00
commit 0282362646

View file

@ -894,8 +894,11 @@ void EnItem00_Update(Actor* thisx, GlobalContext* globalCtx) {
DroppedItemRot += 100; DroppedItemRot += 100;
} }
if ((this->unk_15A > 0) && !CVar_GetS32("gDropsDontDie", 0)) { if (this->unk_15A > 0) {
this->unk_15A--; this->unk_15A--;
if (CVar_GetS32("gDropsDontDie", 0) && (this->unk_154 <= 0)) {
this->unk_15A++;
}
} }
if ((this->unk_15A > 0) && (this->unk_15A < 41) && (this->unk_154 <= 0)) { if ((this->unk_15A > 0) && (this->unk_15A < 41) && (this->unk_154 <= 0)) {