1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-25 09:44:02 +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
{
if (dsq->continuity.form == FORM_SPIRIT && !skeletalSprite.getParent())
{
skeletalSprite.position = bodyPosition+bodyOffset;
skeletalSprite.render(rs);
}
Entity::render(rs);
@ -4777,7 +4773,7 @@ void Avatar::updateFormVisualEffects(float dt)
break;
case FORM_SPIRIT:
skeletalSprite.update(dt);
skeletalSprite.position = bodyPosition;
skeletalSprite.position = bodyPosition + bodyOffset;
break;
case FORM_NORMAL:
case FORM_BEAST: