Fix scroll routine issue. Closes #1663.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10170 4a71c877-e1ca-e34f-864e-861f7616d084
master
i-nod 2010-03-06 15:47:48 +00:00 committed by Git SVN Gateway
parent 011fd7ee2e
commit 24cd201a00
1 changed files with 2 additions and 2 deletions

View File

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