Re-arrange channels. PLAYER channel sounds will now trigger even on a channel thats in use (stops sound glitching too badly if doors etc are nearby)

This commit is contained in:
stevenhowes
2021-09-01 19:16:24 +01:00
parent 42c5fcad69
commit f210658025
4 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -662,7 +662,10 @@ void game2_triggerevent(int id)
else if(EventActions[i].Action == 1) // Change area name
sprintf(areaname,"%s",Areas[EventActions[i].ActionValue].name);
else if(EventActions[i].Action == 2) // Play sound
sound_pcm_playsample_ifidle(EventActions[i].ActionTarget,EventActions[i].ActionValue);
if(EventActions[i].ActionTarget == PCMCHANNEL_PLAYER)
sound_pcm_playsample(EventActions[i].ActionTarget,EventActions[i].ActionValue);
else
sound_pcm_playsample_ifidle(EventActions[i].ActionTarget,EventActions[i].ActionValue);
else if(EventActions[i].Action == 3) // Re-arm
Events[EventActions[i].ActionTarget].Triggered = 0;
else if(EventActions[i].Action == 4) // Schedule Event