mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- use the same formula as Duke to offset SW's shadows in Polymost.
This commit is contained in:
parent
39b84c4063
commit
a7921e4c01
1 changed files with 4 additions and 4 deletions
|
@ -351,10 +351,10 @@ DoShadows(spritetype* tsprite, int& spritesortcnt, tspriteptr_t tsp, int viewz,
|
||||||
}
|
}
|
||||||
else if (!testnewrenderer)
|
else if (!testnewrenderer)
|
||||||
{
|
{
|
||||||
int const camang = mirror ? NORM_ANGLE(2048 - Player[screenpeek].siang) : Player[screenpeek].siang;
|
// Alter the shadow's position so that it appears behind the sprite itself.
|
||||||
New->x += bcos(camang, -11);
|
int look = getangle(New->x - Player[screenpeek].six, New->y - Player[screenpeek].siy);
|
||||||
New->y += bsin(camang, -11);
|
New->x += bcos(look, -9);
|
||||||
|
New->y += bsin(look, -9);
|
||||||
}
|
}
|
||||||
else New->time = 1;
|
else New->time = 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue