mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 04:20:42 +00:00
- 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:
parent
cf6188b034
commit
b2c42d5d03
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue