From fd2a513a366c35d30eb8af6250b0f69c1b58c2b1 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 17 Dec 2020 16:23:24 +0800 Subject: [PATCH] 1 --- server/gameserver/human.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 0299ccf1..0784c54c 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -4197,7 +4197,7 @@ void Human::OnLand() dirs.push_back(a8::Vec2::LEFT); dirs.push_back(a8::Vec2::RIGHT); } - for (int i = 0; i < 10000000; i += 5) { + for (int i = 0; i < 10000000; i += 10) { for (const a8::Vec2& dir : dirs) { SetPos(old_pos + dir * i); if (!IsCollisionInMapService()) { @@ -4206,5 +4206,6 @@ void Human::OnLand() } } } + SetPos(old_pos); } }