From 46ef8b58dabe1acb0511fccd027e9da1e6b53b71 Mon Sep 17 00:00:00 2001 From: ac-stef Date: Thu, 15 May 2014 17:52:32 +0200 Subject: [PATCH] fix sliding along corners solves most stuck-conditions along corners --- source/src/physics.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/src/physics.cpp b/source/src/physics.cpp index dd1d8c30..c777afa4 100644 --- a/source/src/physics.cpp +++ b/source/src/physics.cpp @@ -617,6 +617,8 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime) } pl->o.x -= vd.x; pl->o.y -= vd.y; + pl->o.x += f*d.x; + pl->o.y += f*d.y; } else {