mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Minor cleanup to previous commit. DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@5396 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
38080520ef
commit
6bf2a897c6
1 changed files with 5 additions and 4 deletions
|
@ -3983,6 +3983,9 @@ int32_t polymost_lintersect(int32_t x1, int32_t y1, int32_t x2, int32_t y2,
|
|||
return rv;
|
||||
}
|
||||
|
||||
#define TSPR_OFFSET(tspr) \
|
||||
(((FindDistance2D((tspr->x - globalposx), (tspr->y - globalposy)) >> 4) * .0001f) + \
|
||||
((tspr->owner != -1 ? tspr->owner & 63 : 0) * .0001f))
|
||||
|
||||
void polymost_drawsprite(int32_t snum)
|
||||
{
|
||||
|
@ -4097,8 +4100,7 @@ void polymost_drawsprite(int32_t snum)
|
|||
|
||||
int const ang = (getangle(tspr->x - globalposx, tspr->y - globalposy) + 1024) & 2047;
|
||||
|
||||
float const foffs = ((FindDistance2D((tspr->x-globalposx), (tspr->y-globalposy))>>4) * .0001f) +
|
||||
((tspr->owner != -1 ? tspr->owner & 63 : 0) * .0001f);
|
||||
float const foffs = TSPR_OFFSET(tspr);
|
||||
|
||||
vec2f_t const offs ={ (float) (sintable[(ang + 512) & 2047] >> 6) * foffs,
|
||||
(float) (sintable[(ang) & 2047] >> 6) * foffs };
|
||||
|
@ -4262,8 +4264,7 @@ void polymost_drawsprite(int32_t snum)
|
|||
POINT2(w).x, POINT2(w).y))
|
||||
{
|
||||
int32_t const ang = getangle(wall[w].x - POINT2(w).x, wall[w].y - POINT2(w).y);
|
||||
float const foffs = ((FindDistance2D((tspr->x-globalposx), (tspr->y-globalposy))>>4) * .0001f) +
|
||||
((tspr->owner != -1 ? tspr->owner & 63 : 0) * .0001f);
|
||||
float const foffs = TSPR_OFFSET(tspr);
|
||||
vec2f_t const offs = { (float)(sintable[(ang + 1024) & 2047] >> 6) * foffs,
|
||||
(float)(sintable[(ang + 512) & 2047] >> 6) * foffs};
|
||||
|
||||
|
|
Loading…
Reference in a new issue