mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 20:15:17 +00:00
Cleanup
This commit is contained in:
parent
a0ff975ec8
commit
3a85b7051e
2 changed files with 4 additions and 7 deletions
|
@ -1415,15 +1415,13 @@ cur_obj_update_begin:;
|
|||
// Out of render distance, hide the object.
|
||||
gCurrentObject->header.gfx.node.flags &= ~GRAPH_RENDER_ACTIVE;
|
||||
|
||||
if (gBehaviorValues.InfiniteRenderDistance)
|
||||
{
|
||||
if (gBehaviorValues.InfiniteRenderDistance) {
|
||||
gCurrentObject->activeFlags &= ~ACTIVE_FLAG_FAR_AWAY;
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
// the following flag would deactivate behavior code // sorry but I need this
|
||||
gCurrentObject->activeFlags |= ACTIVE_FLAG_FAR_AWAY;
|
||||
}
|
||||
|
||||
} else if (gCurrentObject->oHeldState == HELD_FREE) {
|
||||
// In render distance (and not being held), show the object.
|
||||
gCurrentObject->header.gfx.node.flags |= GRAPH_RENDER_ACTIVE;
|
||||
|
|
|
@ -1940,9 +1940,8 @@ u32 interact_koopa_shell(struct MarioState *m, UNUSED u32 interactType, struct O
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
for (s32 i = 0; i < MAX_PLAYERS; i++) {
|
||||
for (s32 i = 1; i < MAX_PLAYERS; i++) {
|
||||
if (!is_player_active(&gMarioStates[i])) { continue; }
|
||||
if (i == 0) { continue; }
|
||||
if (gMarioStates[i].riddenObj == o) { return FALSE; }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue