mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-11 23:54:09 +02:00
#183 fix "Fire sound fx"
This commit is contained in:
@@ -1674,7 +1674,8 @@ struct Lara : Character {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (hitType == TR::HIT_LAVA) {
|
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);
|
Flame::add(game, this, rand() % getModel()->mCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -166,7 +166,10 @@ struct Flame : Sprite {
|
|||||||
|
|
||||||
virtual void update() {
|
virtual void update() {
|
||||||
Sprite::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));
|
Character *lara = (Character*)((owner && owner->getEntity().isLara()) ? owner : game->getLara(pos));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user