Fix scroll routine issue. Closes #1663.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10170 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
011fd7ee2e
commit
24cd201a00
|
@ -1193,9 +1193,9 @@ void scroll(void)
|
|||
(float)GAME_TICKS_PER_SEC;
|
||||
|
||||
/* Get x component of movement */
|
||||
xDif = iCosR(player.r.y, scrollStepLeftRight) + iSinR(player.r.y, scrollStepUpDown);
|
||||
xDif = iCosR(-player.r.y, scrollStepLeftRight) + iSinR(-player.r.y, scrollStepUpDown);
|
||||
/* Get y component of movement */
|
||||
yDif = iSinR(player.r.y, scrollStepLeftRight) - iCosR(player.r.y, scrollStepUpDown);
|
||||
yDif = iSinR(-player.r.y, scrollStepLeftRight) - iCosR(-player.r.y, scrollStepUpDown);
|
||||
|
||||
/* Adjust player's position by these components */
|
||||
player.p.x += xDif;
|
||||
|
|
Loading…
Reference in New Issue