diff options
| author | Josh Bodner <30329717+jbodner09@users.noreply.github.com> | 2022-06-09 14:28:58 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-09 17:28:58 -0400 |
| commit | 257cc41d2b537e4a1ef2e6dd0cf6907380abf46d (patch) | |
| tree | 7bb2b59c6e58d2683c5c4301d06ca2f72281a724 /soh/src/code | |
| parent | e39961dc4b1f0380b9f9b5003439ec95e15b1910 (diff) | |
Stop the dropped item despawn timer on demand (#382)
* Stop the despawn timer on demand
* But do make them disappear once they're collected!
Diffstat (limited to 'soh/src/code')
| -rw-r--r-- | soh/src/code/z_en_item00.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/soh/src/code/z_en_item00.c b/soh/src/code/z_en_item00.c index d0179a5e1..a7de67900 100644 --- a/soh/src/code/z_en_item00.c +++ b/soh/src/code/z_en_item00.c @@ -896,6 +896,9 @@ void EnItem00_Update(Actor* thisx, GlobalContext* globalCtx) { if (this->unk_15A > 0) { 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)) { |
