mirror of
https://github.com/ZDoom/Raze.git
synced 2025-04-23 00:11:03 +00:00
- math errors?
This commit is contained in:
parent
7414d737a9
commit
b0099fc513
1 changed files with 4 additions and 4 deletions
|
@ -535,14 +535,14 @@ void DrawPlayerArrow(int cposx, int cposy, int cang, int pl_x, int pl_y, int zoo
|
|||
{
|
||||
|
||||
int px1 = DMulScale(arrow[i], pxvect, -arrow[i+1], pyvect, 16);
|
||||
int py1 = DMulScale(arrow[i+1], pxvect, arrow[i], pyvect, 16) + (height << 11);
|
||||
int py1 = DMulScale(arrow[i + 1], pxvect, arrow[i], pyvect, 16);// +(height << 11);
|
||||
int px2 = DMulScale(arrow[i+2], pxvect, -arrow[i + 3], pyvect, 16);
|
||||
int py2 = DMulScale(arrow[i + 3], pxvect, arrow[i+2], pyvect, 16) + (height << 11);
|
||||
int py2 = DMulScale(arrow[i + 3], pxvect, arrow[i + 2], pyvect, 16);// +(height << 11);
|
||||
|
||||
int ox1 = px1 - cposx;
|
||||
int oy1 = py1 - cposx;
|
||||
int oy1 = py1 - cposy;
|
||||
int ox2 = px2 - cposx;
|
||||
int oy2 = py2 - cposx;
|
||||
int oy2 = py2 - cposy;
|
||||
|
||||
int sx1 = DMulScale(ox1, xvect, -oy1, yvect, 16) + (width << 11);
|
||||
int sy1 = DMulScale(oy1, xvect, ox1, yvect, 16) + (height << 11);
|
||||
|
|
Loading…
Reference in a new issue