From 5ed356ea46d20e955868cf7ac29d13a8926e7e34 Mon Sep 17 00:00:00 2001 From: TehRealSalt Date: Wed, 22 May 2019 13:40:35 -0400 Subject: [PATCH] Flip angle when reflecting --- src/p_map.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/p_map.c b/src/p_map.c index 52a483d3c..c0286263b 100644 --- a/src/p_map.c +++ b/src/p_map.c @@ -762,6 +762,7 @@ static boolean PIT_CheckThing(mobj_t *thing) tmthing->momx = -tmthing->momx; tmthing->momy = -tmthing->momy; tmthing->momz = -tmthing->momz; + tmthing->angle += ANGLE_180; } if (tmthing->type == MT_JAWZ) P_SetTarget(&tmthing->tracer, tmthing->target); // Back to the source! @@ -811,6 +812,7 @@ static boolean PIT_CheckThing(mobj_t *thing) thing->momx = -thing->momx; thing->momy = -thing->momy; thing->momz = -thing->momz; + thing->angle += ANGLE_180; } if (thing->type == MT_JAWZ) P_SetTarget(&thing->tracer, thing->target); // Back to the source!