- Exhumed: fixed sound origin in DoRegenerates.

Should be the actual sprite, not the table index...

# Conflicts:
#	source/games/exhumed/src/items.cpp
This commit is contained in:
Christoph Oelckers 2021-09-07 21:27:19 +02:00
parent 7f485bfab1
commit f7a475aa94

View file

@ -447,7 +447,7 @@ void DoRegenerates()
if (sprite[nSprite].extra <= 0) if (sprite[nSprite].extra <= 0)
{ {
BuildAnim(-1, 38, 0, sprite[nSprite].x, sprite[nSprite].y, sprite[nSprite].z, sprite[nSprite].sectnum, 64, 4); BuildAnim(-1, 38, 0, sprite[nSprite].x, sprite[nSprite].y, sprite[nSprite].z, sprite[nSprite].sectnum, 64, 4);
D3PlayFX(StaticSound[kSoundTorchOn], i); D3PlayFX(StaticSound[kSoundTorchOn], nSprite);
} }
else { else {
continue; continue;