Smooth walk tolerance increased

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
master
sigonasr2 2 years ago
parent 5f2d588fee
commit 997b18d37d
  1. BIN
      C++ProjectTemplate
  2. 2
      main.cpp

Binary file not shown.

@ -901,7 +901,7 @@ public:
} }
void SmoothMove(Object*obj,vd2d move) { void SmoothMove(Object*obj,vd2d move) {
const int wiggleRoom=3; const int wiggleRoom=5;
vd2d originPos = {obj->pos.x+obj->originPoint.x,obj->pos.y-1+obj->originPoint.y}; vd2d originPos = {obj->pos.x+obj->originPoint.x,obj->pos.y-1+obj->originPoint.y};
if (!Collision(originPos+move)) { if (!Collision(originPos+move)) {
Move(PLAYER_OBJ,move); Move(PLAYER_OBJ,move);

Loading…
Cancel
Save