Commit 71abac33 authored by Richard Gobeille's avatar Richard Gobeille
Browse files

engine: fix clipping issue where the player could get squished between a...

engine: fix clipping issue where the player could get squished between a 2-sided blocking wall sprite and a wall in rare instances
parent 43823847
......@@ -1541,7 +1541,7 @@ int32_t clipmove(vec3_t * const pos, int16_t * const sectnum, int32_t xvect, int
{
for (native_t i=clipnum-1;i>=0;--i)
{
if (!bitmap_test(clipignore, i) && clipinsideboxline(pos->x, pos->y, clipit[i].x1, clipit[i].y1, clipit[i].x2, clipit[i].y2, walldist))
if (!bitmap_test(clipignore, i) && clipinsideboxline(pos->x, pos->y, clipit[i].x1, clipit[i].y1, clipit[i].x2, clipit[i].y2, walldist-1))
{
vec2_t const vec = pos->vec2;
keepaway(&pos->x, &pos->y, i);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment