Fix Set angle miscalculation

This commit is contained in:
sirlemonhead 2019-11-15 22:22:37 +00:00 committed by Christoph Oelckers
parent 21459b4ba8
commit eded50e873

View file

@ -468,7 +468,7 @@ void FuncSet(int a, int nDamage, int nRun)
}
}
sprite[nSprite].ang = (sprite[nSprite].ang + 512) & kAngleMask; // CHECKME loc_33A14
sprite[nSprite].ang = (sprite[nSprite].ang + 256) & kAngleMask;
sprite[nSprite].xvel = Sin(sprite[nSprite].ang + 512) >> 1;
sprite[nSprite].yvel = Sin(sprite[nSprite].ang) >> 1;
break;