mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-13 03:20:44 +00:00
Fix fish velocity calculation
This commit is contained in:
parent
c783ecbf22
commit
d5fd9ba8b4
1 changed files with 2 additions and 2 deletions
|
@ -281,8 +281,8 @@ void IdleFish(short nFish, short edx)
|
|||
sprite[nSprite].ang += (256 - RandomSize(9)) + 1024;
|
||||
sprite[nSprite].ang &= kAngleMask;
|
||||
|
||||
sprite[nSprite].xvel = (sprite[nSprite].ang + 512) >> 8;
|
||||
sprite[nSprite].yvel = (sprite[nSprite].ang) >> 8;
|
||||
sprite[nSprite].xvel = Cos(sprite[nSprite].ang) >> 8;
|
||||
sprite[nSprite].yvel = Sin(sprite[nSprite].ang) >> 8;
|
||||
|
||||
FishList[nFish].nAction = 0;
|
||||
FishList[nFish].field_2 = 0;
|
||||
|
|
Loading…
Reference in a new issue