Fix animation desync when pressing Z+B
Fixes #18 Found by el pinguino max
This commit is contained in:
parent
05674f3d69
commit
4cb13edf84
|
@ -1566,7 +1566,7 @@ s32 act_lava_boost(struct MarioState *m) {
|
|||
}
|
||||
|
||||
s32 act_slide_kick(struct MarioState *m) {
|
||||
if (m->actionState == 0 && m->actionTimer == 0) {
|
||||
if (m->actionTimer == 0) {
|
||||
play_mario_sound(m, SOUND_ACTION_TERRAIN_JUMP, SOUND_MARIO_HOOHOO);
|
||||
set_mario_animation(m, MARIO_ANIM_SLIDE_KICK);
|
||||
}
|
||||
|
|
|
@ -100,6 +100,11 @@ void network_receive_player(struct Packet* p) {
|
|||
gMarioStates[1].marioBodyState->punchState = (0 << 6) | 4;
|
||||
}
|
||||
}
|
||||
|
||||
// action changed, reset timer
|
||||
if (gMarioStates[1].action != oldAction) {
|
||||
gMarioStates[1].actionTimer = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void network_update_player(void) {
|
||||
|
|
Loading…
Reference in New Issue