Skip to content

Commit

Permalink
- SW: fixed shadow positioning.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed May 29, 2022
1 parent 7de040c commit d7c15d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/games/sw/src/draw.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit d7c15d7

Please sign in to comment.