From 591ea6869e6d0b375365bd0a7c90257cf5fac0cf Mon Sep 17 00:00:00 2001 From: Nimetu Date: Sat, 25 Sep 2021 12:33:24 +0300 Subject: [PATCH] Remove shortcut to moveToAction(). sendExecuteToServer() will be called before clientExecute() and that will cause "stuck stanza" client side when server rejects the action. Reproducible with forage stanza with material specialization. --- ryzom/client/src/user_entity.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/ryzom/client/src/user_entity.cpp b/ryzom/client/src/user_entity.cpp index 2ed7355b0..6c0e68973 100644 --- a/ryzom/client/src/user_entity.cpp +++ b/ryzom/client/src/user_entity.cpp @@ -1402,18 +1402,6 @@ void CUserEntity::moveToCheckStartDist(CLFECOMMON::TCLEntityId slot, double dist // disable afk mode setAFK(false); - - // if sufficiently near, launch the action - CEntityCL *target = EntitiesMngr.entity(slot); - if(target) - { - CVectorD dir2targ = target->pos() - pos(); - dir2targ.z = 0.0; - if((dir2targ==CVectorD::Null) || (dir2targ.norm() < dist)) - { - moveToAction(target); - } - } } }// moveToCheckStartDist //