- SW: Ensure player's fvel/svel is calculated using q16ang, and not camq16ang.

Fixes #328, again.
This commit is contained in:
Mitchell Richters 2020-09-07 05:19:49 +10:00
parent 677efb20ba
commit 613c32e6a2

View file

@ -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)]);