mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-13 07:58:04 +00:00
Amend previous commit. DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@5007 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
75f2028dcc
commit
59fa70cc58
1 changed files with 8 additions and 11 deletions
|
@ -7395,18 +7395,15 @@ void G_DoSpriteAnimations(int32_t ourx, int32_t oury, int32_t oura, int32_t smoo
|
||||||
|
|
||||||
Bassert(i >= 0);
|
Bassert(i >= 0);
|
||||||
|
|
||||||
if (s->statnum != STAT_ACTOR && s->picnum == APLAYER && s->owner >= 0)
|
const DukePlayer_t *const ps = (s->statnum != STAT_ACTOR && s->picnum == APLAYER && s->owner >= 0) ? g_player[P_GetP((const spritetype *)s)].ps : NULL;
|
||||||
|
if (ps && ps->newowner == -1)
|
||||||
{
|
{
|
||||||
const DukePlayer_t *const ps = g_player[P_GetP((const spritetype *)s)].ps;
|
t->x -= mulscale16(65536-smoothratio,ps->pos.x-ps->opos.x);
|
||||||
if (ps->newowner == -1)
|
t->y -= mulscale16(65536-smoothratio,ps->pos.y-ps->opos.y);
|
||||||
{
|
// dirty hack
|
||||||
t->x -= mulscale16(65536-smoothratio,ps->pos.x-ps->opos.x);
|
if (ps->dead_flag) t->z = ps->opos.z;
|
||||||
t->y -= mulscale16(65536-smoothratio,ps->pos.y-ps->opos.y);
|
t->z += mulscale16(smoothratio,ps->pos.z-ps->opos.z) -
|
||||||
// dirty hack
|
(ps->dead_flag ? 0 : PHEIGHT) + PHEIGHT;
|
||||||
if (ps->dead_flag) t->z = ps->opos.z;
|
|
||||||
t->z += mulscale16(smoothratio,ps->pos.z-ps->opos.z) -
|
|
||||||
(ps->dead_flag ? 0 : PHEIGHT) + PHEIGHT;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if ((s->statnum == STAT_DEFAULT && s->picnum != CRANEPOLE) || s->statnum == STAT_PLAYER ||
|
else if ((s->statnum == STAT_DEFAULT && s->picnum != CRANEPOLE) || s->statnum == STAT_PLAYER ||
|
||||||
s->statnum == STAT_STANDABLE || s->statnum == STAT_PROJECTILE || s->statnum == STAT_MISC || s->statnum == STAT_ACTOR)
|
s->statnum == STAT_STANDABLE || s->statnum == STAT_PROJECTILE || s->statnum == STAT_MISC || s->statnum == STAT_ACTOR)
|
||||||
|
|
Loading…
Reference in a new issue