From 8ae91de9db00a8570d8ce69eaca6719e8e437ac7 Mon Sep 17 00:00:00 2001 From: toasterbabe Date: Tue, 25 Apr 2017 16:03:51 +0100 Subject: [PATCH] Per Inu's request, semi-broken (both game mechanically and engineering wise) directional information has been removed from the Captions. It's now "in-level" (dot) and "sourceless" (no dot) only. --- src/screen.c | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/src/screen.c b/src/screen.c index ca1e6b659..1c37f8a07 100644 --- a/src/screen.c +++ b/src/screen.c @@ -473,25 +473,8 @@ void SCR_ClosedCaptions(void) flags |= (((20-closedcaptions[i].t)/2)*V_10TRANS); else if (closedcaptions[i].t > TICRATE) y -= (closedcaptions[i].t-- - TICRATE)*vid.dupy; - if (closedcaptions[i].c) - { - const mobj_t *o = (const mobj_t *)closedcaptions[i].c->origin; - if (o) - { - if (!splitscreen) - { - angle_t angle = R_PointToAngle(o->x, o->y) - localangle; - if (angle > ANGLE_45 && angle < ANGLE_135) - dir = '\x1C'; - else if (angle > ANGLE_225 && angle < ANGLE_315) - dir = '\x1D'; - else - dir = '\x1E'; - } - else - dir = '\x1E'; - } - } + if (closedcaptions[i].c && closedcaptions[i].c->origin) + dir = '\x1E'; V_DrawRightAlignedString(vid.width-(20*vid.dupx), y, flags, va("%c [%s]", dir, (closedcaptions[i].s->caption[0] ? closedcaptions[i].s->caption : closedcaptions[i].s->name))); }