mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
fix #333
This commit is contained in:
parent
5faef5d6dd
commit
aee64e8e34
1 changed files with 7 additions and 2 deletions
|
@ -635,8 +635,13 @@ void OperateSprite(int nSprite, XSPRITE *pXSprite, EVENT event)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case kSoundPlayer:
|
case kSoundPlayer:
|
||||||
if ((gGameOptions.nGameType != 0 && gGameOptions.nGameType != 1 && gGameOptions.nGameType != 2) || gMe->pXSprite->health <= 0) break;
|
if (gGameOptions.nGameType == 0)
|
||||||
gMe->restTime = 0; sndStartSample(pXSprite->data1, -1, 1, 0);
|
{
|
||||||
|
if (gMe->pXSprite->health <= 0)
|
||||||
|
break;
|
||||||
|
gMe->restTime = 0;
|
||||||
|
}
|
||||||
|
sndStartSample(pXSprite->data1, -1, 1, 0);
|
||||||
break;
|
break;
|
||||||
case kThingObjectGib:
|
case kThingObjectGib:
|
||||||
case kThingObjectExplode:
|
case kThingObjectExplode:
|
||||||
|
|
Loading…
Reference in a new issue