mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-13 20:42:11 +00:00
- SW: fixed shadow positioning.
This commit is contained in:
parent
7de040cc92
commit
d7c15d7153
1 changed files with 1 additions and 2 deletions
|
@ -333,14 +333,13 @@ void DoShadows(tspritetype* tsprite, int& spritesortcnt, tspritetype* tsp, int v
|
|||
tSpr->clipdist |= TSPR_FLAGS_MDHACK;
|
||||
tSpr->cstat |= CSTAT_SPRITE_TRANS_FLIP;
|
||||
}
|
||||
else if (!vid_renderer)
|
||||
else
|
||||
{
|
||||
// Alter the shadow's position so that it appears behind the sprite itself.
|
||||
int look = getangle(tSpr->pos.X - Player[screenpeek].si.X, tSpr->pos.Y - Player[screenpeek].si.Y);
|
||||
tSpr->pos.X += bcos(look, -9);
|
||||
tSpr->pos.Y += bsin(look, -9);
|
||||
}
|
||||
else tSpr->time = 1;
|
||||
|
||||
// Check for voxel items and use a round generic pic if so
|
||||
//DoVoxelShadow(New);
|
||||
|
|
Loading…
Reference in a new issue