mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-02 18:21:06 +00:00
- addressed most unused/uninitialized variable warnings from MSVC.
This commit is contained in:
parent
c6bd5c04c7
commit
01abe7b2ac
158 changed files with 94 additions and 468 deletions
|
@ -73,17 +73,12 @@ template<typename T> void GetSpriteExtents(T const* const pSprite, int* top, int
|
|||
|
||||
bool GameInterface::DrawAutomapPlayer(int x, int y, int z, int a, double const smoothratio)
|
||||
{
|
||||
// [MR]: Confirm that this is correct as math doesn't match the variable names.
|
||||
int nCos = z * -bsin(a);
|
||||
int nSin = z * -bcos(a);
|
||||
|
||||
for (int i = connecthead; i >= 0; i = connectpoint2[i])
|
||||
{
|
||||
auto pPlayerActor = PlayerList[i].Actor();
|
||||
spritetype* pSprite = &pPlayerActor->s();
|
||||
int x1 = pSprite->x - x;
|
||||
int y1 = pSprite->y - y;
|
||||
int pa = (pSprite->ang - a) & 2047;
|
||||
if (i == nLocalPlayer)// || gGameOptions.nGameType == 1)
|
||||
{
|
||||
int nTile = pSprite->picnum;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue