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:
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
|
||||
{
|
||||
|
||||
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:
|
||||
|
|
Loading…
Reference in a new issue