Skip to content

Commit

Permalink
set prevpos, m_pos and core m_pos on teleport
Browse files Browse the repository at this point in the history
  • Loading branch information
headshot2017 committed Apr 10, 2021
1 parent e67f892 commit b459c00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/server/gamemodes/WarioWare.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ void CGameControllerWarioWare::teleportPlayer(int client, int tele_id)
return;
}
vec2 outPos = m_TeleOuts[tele_id-1][(!Num)?Num:rand() % Num];
Char->Core()->m_Pos = outPos;
Char->m_Pos = Char->Core()->m_Pos = Char->m_PrevPos = outPos;

Char->Core()->m_HookedPlayer = -1;
Char->Core()->m_HookState = HOOK_RETRACTED;
Expand Down

0 comments on commit b459c00

Please sign in to comment.