sw/src/draw.cpp:drawscreen: Use GetQ16AngleFromVect for pointing

at a remote-controlled SO. In case PedanticMode == FALSE, this
leads to small improvements with aiming at the car in EXAMPLE.MAP.
This commit is contained in:
NY00123 2020-04-17 16:24:25 +03:00 committed by Christoph Oelckers
parent 207240f277
commit ef85bc58c3

View file

@ -2089,7 +2089,7 @@ drawscreen(PLAYERp pp)
if (TEST_BOOL1(pp->remote_sprite)) if (TEST_BOOL1(pp->remote_sprite))
tq16ang = fix16_from_int(pp->remote_sprite->ang); tq16ang = fix16_from_int(pp->remote_sprite->ang);
else else
tq16ang = fix16_from_int(getangle(pp->sop_remote->xmid - tx, pp->sop_remote->ymid - ty)); tq16ang = GetQ16AngleFromVect(pp->sop_remote->xmid - tx, pp->sop_remote->ymid - ty);
} }
//if (TEST(camerapp->Flags, PF_VIEW_FROM_OUTSIDE)) //if (TEST(camerapp->Flags, PF_VIEW_FROM_OUTSIDE))