mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-12-13 03:22:36 +00:00
Bugfix
The bullets snufit shoots immediately got deleted shortly after shooting when NODRAWDISTANCE was enabled. This fixes it
This commit is contained in:
parent
34af21bad4
commit
44f9b92124
1 changed files with 2 additions and 3 deletions
|
|
@ -181,10 +181,9 @@ void bhv_snufit_balls_loop(void) {
|
||||||
// If far from Mario or in a different room, despawn.
|
// If far from Mario or in a different room, despawn.
|
||||||
if ((o->activeFlags & ACTIVE_FLAG_IN_DIFFERENT_ROOM)
|
if ((o->activeFlags & ACTIVE_FLAG_IN_DIFFERENT_ROOM)
|
||||||
#ifndef NODRAWINGDISTANCE
|
#ifndef NODRAWINGDISTANCE
|
||||||
|| (o->oTimer != 0 && o->oDistanceToMario > 1500.0f)) {
|
|| (o->oTimer != 0 && o->oDistanceToMario > 1500.0f)
|
||||||
#else
|
|
||||||
|| (o->oTimer != 0)) {
|
|
||||||
#endif
|
#endif
|
||||||
|
){
|
||||||
obj_mark_for_deletion(o);
|
obj_mark_for_deletion(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue