1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-29 03:33:48 +00:00

Make Avatar::render() actually const

This commit is contained in:
fgenesis 2022-06-09 02:32:46 +02:00
parent 72f2b44620
commit 01b7d51834

View file

@ -4446,12 +4446,8 @@ void Avatar::doShieldSong()
void Avatar::render(const RenderState& rs) const void Avatar::render(const RenderState& rs) const
{ {
if (dsq->continuity.form == FORM_SPIRIT && !skeletalSprite.getParent()) if (dsq->continuity.form == FORM_SPIRIT && !skeletalSprite.getParent())
{
skeletalSprite.position = bodyPosition+bodyOffset;
skeletalSprite.render(rs); skeletalSprite.render(rs);
}
Entity::render(rs); Entity::render(rs);
@ -4777,7 +4773,7 @@ void Avatar::updateFormVisualEffects(float dt)
break; break;
case FORM_SPIRIT: case FORM_SPIRIT:
skeletalSprite.update(dt); skeletalSprite.update(dt);
skeletalSprite.position = bodyPosition; skeletalSprite.position = bodyPosition + bodyOffset;
break; break;
case FORM_NORMAL: case FORM_NORMAL:
case FORM_BEAST: case FORM_BEAST: