mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-20 18:42:26 +00:00
- SW: Clean up gi->GetInput()
by removing some unneeded local variables.
This commit is contained in:
parent
dfc3a13428
commit
46a12cf58a
1 changed files with 7 additions and 7 deletions
|
@ -329,15 +329,15 @@ void GameInterface::GetInput(InputPacket *packet, ControlInfo* const hidInput)
|
|||
|
||||
if (packet)
|
||||
{
|
||||
auto fvel = loc.fvel;
|
||||
auto svel = loc.svel;
|
||||
auto ang = FixedToInt(pp->camq16ang);
|
||||
auto const ang = FixedToInt(pp->camq16ang);
|
||||
|
||||
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)]);
|
||||
loc.q16ang = pp->camq16ang;
|
||||
loc.q16horiz = pp->camq16horiz;
|
||||
*packet = loc;
|
||||
|
||||
packet->fvel = mulscale9(loc.fvel, sintable[NORM_ANGLE(ang + 512)]) + mulscale9(loc.svel, sintable[NORM_ANGLE(ang)]);
|
||||
packet->svel = mulscale9(loc.fvel, sintable[NORM_ANGLE(ang)]) + mulscale9(loc.svel, sintable[NORM_ANGLE(ang + 1536)]);
|
||||
packet->q16ang = pp->camq16ang;
|
||||
packet->q16horiz = pp->camq16horiz;
|
||||
|
||||
loc = {};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue