Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #539 Changing player position when he/she has a jetpack will remove the jetpack and bug when skin is changed #3511

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
6 changes: 6 additions & 0 deletions Client/mods/deathmatch/logic/CClientPed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -607,8 +607,14 @@ void CClientPed::Teleport(const CVector& vecPosition)
SetFrozenWaitingForGroundToLoad(true);
}

// Player has jetpack?
bool hasJetpack = HasJetPack();

// Set the real position
m_pPlayerPed->Teleport(vecPosition.fX, vecPosition.fY, vecPosition.fZ);

// Restore jetpack
SetHasJetPack(hasJetpack);
FileEX marked this conversation as resolved.
Show resolved Hide resolved
}
}
}
Expand Down
Loading