mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 12:05:11 +00:00
Fix first-person camera lock bug
Getting kicked in vanilla-cam's first person messed up the camera, this fixes it. Fixes #55
This commit is contained in:
parent
718974c111
commit
6d438ba760
1 changed files with 6 additions and 0 deletions
|
@ -1263,6 +1263,12 @@ u32 interact_player(struct MarioState* m, UNUSED u32 interactType, struct Object
|
|||
if (m2->playerIndex == 0) {
|
||||
m2->interactObj = m->marioObj;
|
||||
if (interaction & INT_KICK) {
|
||||
if (m2->action == ACT_FIRST_PERSON) {
|
||||
// without this branch, the player will be stuck in first person
|
||||
raise_background_noise(2);
|
||||
set_camera_mode(m2->area->camera, -1, 1);
|
||||
m2->input &= ~INPUT_FIRST_PERSON;
|
||||
}
|
||||
set_mario_action(m2, ACT_FREEFALL, 0);
|
||||
}
|
||||
m->marioObj->oDamageOrCoinValue = determine_player_damage_value(interaction);
|
||||
|
|
Loading…
Reference in a new issue