- buildutils: Replace sintable[] use within Blood with bsin()/bcos().

* Further review of this should be considered as the use of sintable[] for nCos was actually sine and the use of sintable[] for nSin was actually cosine. Preserved math despite the variable names.
This commit is contained in:
Mitchell Richters 2020-11-14 09:47:35 +11:00 committed by Christoph Oelckers
parent cf6188b034
commit b2c42d5d03

View file

@ -1029,8 +1029,9 @@ FString GameInterface::GetCoordString()
bool GameInterface::DrawAutomapPlayer(int x, int y, int z, int a)
{
int nCos = z * sintable[(0 - a) & 2047];
int nSin = z * sintable[(1536 - a) & 2047];
// [MR]: Confirm that this is correct as math doesn't match the variable names.
int nCos = z * -bsin(a);
int nSin = z * -bcos(a);
int nCos2 = mulscale16(nCos, yxaspect);
int nSin2 = mulscale16(nSin, yxaspect);
int nPSprite = gView->pSprite->index;