This commit is contained in:
aozhiwei 2020-12-17 16:23:24 +08:00
parent 0b01bef8cc
commit fd2a513a36

View File

@ -4197,7 +4197,7 @@ void Human::OnLand()
dirs.push_back(a8::Vec2::LEFT); dirs.push_back(a8::Vec2::LEFT);
dirs.push_back(a8::Vec2::RIGHT); 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) { for (const a8::Vec2& dir : dirs) {
SetPos(old_pos + dir * i); SetPos(old_pos + dir * i);
if (!IsCollisionInMapService()) { if (!IsCollisionInMapService()) {
@ -4206,5 +4206,6 @@ void Human::OnLand()
} }
} }
} }
SetPos(old_pos);
} }
} }