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:
parent
72f2b44620
commit
01b7d51834
1 changed files with 1 additions and 5 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue