mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Fix stupid bug with sprite shadows in Polymost
git-svn-id: https://svn.eduke32.com/eduke32@7789 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
f46db45970
commit
b4d3a76793
1 changed files with 4 additions and 5 deletions
|
@ -4268,7 +4268,6 @@ skip:
|
|||
tsprShadow->z = shadowZ;
|
||||
tsprShadow->pal = ud.shadow_pal;
|
||||
|
||||
|
||||
#ifdef USE_OPENGL
|
||||
if (videoGetRenderMode() >= REND_POLYMOST)
|
||||
{
|
||||
|
@ -4282,11 +4281,11 @@ skip:
|
|||
}
|
||||
else
|
||||
{
|
||||
int const ii
|
||||
= getangle(tsprShadow->x - g_player[screenpeek].ps->pos.x, tsprShadow->y - g_player[screenpeek].ps->pos.y);
|
||||
int const camang = display_mirror ? ((2048 - fix16_to_int(CAMERA(q16ang))) & 2047) : fix16_to_int(CAMERA(q16ang));
|
||||
vec2_t const ofs = { sintable[(camang+512)&2047]>>11, sintable[(camang)&2047]>>11};
|
||||
|
||||
tsprShadow->x += sintable[(ii+2560)&2047]>>9;
|
||||
tsprShadow->y += sintable[(ii+2048)&2047]>>9;
|
||||
tsprShadow->x += ofs.x;
|
||||
tsprShadow->y += ofs.y;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue