Skip to content

Commit 2785262

Browse files
committed
remove a problematic fix ported from fixes.inc
1 parent 6b7bcd0 commit 2785262

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

Server/Source/player_impl.hpp

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -785,34 +785,6 @@ struct Player final : public IPlayer, public PoolIDProvider, public NoCopy
785785
{
786786
PacketHelper::broadcastToStreamed(clearPlayerTasksRPC, *this, false /* skipFrom */);
787787
}
788-
789-
IPlayerVehicleData* data = queryExtension<IPlayerVehicleData>(*this);
790-
if (!data || !data->getVehicle())
791-
{
792-
// TODO: This must be fixed on client side
793-
// *
794-
// * <problem>
795-
// * ClearAnimations doesn't do anything when the animation ends if we
796-
// * pass 1 for the freeze parameter in ApplyAnimation.
797-
// * </problem>
798-
// * <solution>
799-
// * Apply an idle animation for stop and then use ClearAnimation.
800-
// * </solution>
801-
// * <see>FIXES_ClearAnimations</see>
802-
// * <author href="https://github.com/simonepri/" >simonepri</author>
803-
// *
804-
AnimationData animationData(4.0f, false, false, false, false, 1, "", "");
805-
806-
animationData.lib = "PED";
807-
animationData.name = "IDLE_STANCE";
808-
applyAnimationImpl(animationData, syncType);
809-
animationData.lib = "PED";
810-
animationData.name = "IDLE_CHAT";
811-
applyAnimationImpl(animationData, syncType);
812-
animationData.lib = "PED";
813-
animationData.name = "WALK_PLAYER";
814-
applyAnimationImpl(animationData, syncType);
815-
}
816788
}
817789

818790
void clearAnimations(PlayerAnimationSyncType syncType) override

0 commit comments

Comments
 (0)