mirror of
https://github.com/DrBeef/Raze.git
synced 2025-03-21 00:40:51 +00:00
- handle nofloorpal for CallAnimate overrides.
This commit is contained in:
parent
3bc34ec773
commit
94a13118b3
2 changed files with 12 additions and 4 deletions
|
@ -181,12 +181,16 @@ void animatesprites_d(tspriteArray& tsprites, const DVector2& viewVec, DAngle vi
|
|||
t->angle = h->interpolatedangle(interpfrac);
|
||||
}
|
||||
|
||||
auto sectp = h->sector();
|
||||
if (h->GetClass() != RUNTIME_CLASS(DDukeActor))
|
||||
{
|
||||
if (CallAnimate(h, t)) continue;
|
||||
bool res = CallAnimate(h, t);
|
||||
if (sectp->floorpal && !actorflag(h, SFLAG2_NOFLOORPAL))
|
||||
copyfloorpal(t, sectp);
|
||||
|
||||
if (res) continue;
|
||||
}
|
||||
|
||||
auto sectp = h->sector();
|
||||
t1 = h->temp_data[1];
|
||||
t3 = h->temp_data[3];
|
||||
t4 = h->temp_data[4];
|
||||
|
|
|
@ -161,12 +161,16 @@ void animatesprites_r(tspriteArray& tsprites, const DVector2& viewVec, DAngle vi
|
|||
t->angle = h->interpolatedangle(interpfrac);
|
||||
}
|
||||
|
||||
auto sectp = h->sector();
|
||||
if (h->GetClass() != RUNTIME_CLASS(DDukeActor))
|
||||
{
|
||||
if (CallAnimate(h, t)) continue;
|
||||
bool res = CallAnimate(h, t);
|
||||
if (sectp->floorpal && !actorflag(h, SFLAG2_NOFLOORPAL))
|
||||
copyfloorpal(t, sectp);
|
||||
|
||||
if (res) continue;
|
||||
}
|
||||
|
||||
auto sectp = h->sector();
|
||||
t1 = h->temp_data[1];
|
||||
t3 = h->temp_data[3];
|
||||
t4 = h->temp_data[4];
|
||||
|
|
Loading…
Reference in a new issue