Jeck - As prior, but for sounds and music as well. Use CommonRes->ssLoadMusic / CommonRes->ssLoadSample.

This commit is contained in:
wagic.jeck
2009-08-27 06:31:38 +00:00
parent 5e14efed3c
commit 807eea7ddb
10 changed files with 644 additions and 629 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ MTGCardInstance * MTGPlayerCards::putInZone(MTGCardInstance * card, MTGGameZone
if (options[Options::SFXVOLUME].number > 0){
if (to == g->players[0]->game->graveyard || to == g->players[1]->game->graveyard){
if (card->isCreature()){
JSample * sample = SampleCache::GetInstance()->getSample("sound/sfx/graveyard.wav");
JSample * sample = SampleCache::GetInstance()->getSample("graveyard.wav");
if (sample) JSoundSystem::GetInstance()->PlaySample(sample);
}
}