diff --git a/src/lara.h b/src/lara.h index 40a677c..0cafb7f 100644 --- a/src/lara.h +++ b/src/lara.h @@ -1674,7 +1674,8 @@ struct Lara : Character { } if (hitType == TR::HIT_LAVA) { - for (int i = 0; i < 10; i++) + Flame::add(game, this, 0); + for (int i = 1; i < 10; i++) Flame::add(game, this, rand() % getModel()->mCount); } diff --git a/src/objects.h b/src/objects.h index c5b25d3..7b97df0 100644 --- a/src/objects.h +++ b/src/objects.h @@ -166,7 +166,10 @@ struct Flame : Sprite { virtual void update() { Sprite::update(); - game->playSound(TR::SND_FLAME, pos, Sound::PAN); + + if (jointIndex <= 0) { + game->playSound(TR::SND_FLAME, pos, Sound::PAN); + } Character *lara = (Character*)((owner && owner->getEntity().isLara()) ? owner : game->getLara(pos));