mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +00:00
- SW: Ensure player's fvel/svel is calculated using q16ang
, and not camq16ang
.
Fixes #328, again.
This commit is contained in:
parent
677efb20ba
commit
613c32e6a2
1 changed files with 1 additions and 1 deletions
|
@ -368,7 +368,7 @@ void GameInterface::GetInput(InputPacket *packet)
|
|||
|
||||
auto fvel = loc.fvel;
|
||||
auto svel = loc.svel;
|
||||
auto ang = FixedToInt(pp->camq16ang);
|
||||
auto ang = FixedToInt(pp->q16ang);
|
||||
|
||||
loc.fvel = mulscale9(fvel, sintable[NORM_ANGLE(ang + 512)]) + mulscale9(svel, sintable[NORM_ANGLE(ang)]);
|
||||
loc.svel = mulscale9(fvel, sintable[NORM_ANGLE(ang)]) + mulscale9(svel, sintable[NORM_ANGLE(ang + 1536)]);
|
||||
|
|
Loading…
Reference in a new issue