mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 12:30:46 +00:00
- stop weapon from moving up and down while cl_weaponsway 0
is set.
* Default zDelta is -2048, so only add (zDelta / 128.) if `cl_weaponsway 1` and add (-2048. / 128.) otherwise. * Fixes #134 a bit better.
This commit is contained in:
parent
5b91a11404
commit
7243c08379
1 changed files with 7 additions and 3 deletions
|
@ -107,11 +107,15 @@ void hudDraw(PLAYER *gView, int nSectnum, int defaultHoriz, double bobx, double
|
|||
DTA_ViewportX, windowxy1.x, DTA_ViewportY, windowxy1.y, DTA_ViewportWidth, windowxy2.x - windowxy1.x + 1, DTA_ViewportHeight, windowxy2.y - windowxy1.y + 1, TAG_DONE);
|
||||
}
|
||||
double cX = 160;
|
||||
double cY = 220 + (zDelta / 128.);
|
||||
double cY = 220;
|
||||
if (cl_weaponsway)
|
||||
{
|
||||
cX += bobx / 256.;
|
||||
cY += boby / 256.;
|
||||
cX += (bobx / 256.);
|
||||
cY += (boby / 256.) + (zDelta / 128.);
|
||||
}
|
||||
else
|
||||
{
|
||||
cY += (-2048. / 128.);
|
||||
}
|
||||
int nShade = sector[nSectnum].floorshade;
|
||||
int nPalette = 0;
|
||||
|
|
Loading…
Reference in a new issue