dungeon_crawler

diff prototype/src/tile.cc @ 50:c40efa9cf844

torches sound
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 18 Sep 2012 04:45:46 +0300
parents 303743485aba
children d57df51f6b50
line diff
     1.1 --- a/prototype/src/tile.cc	Tue Sep 18 00:34:29 2012 +0300
     1.2 +++ b/prototype/src/tile.cc	Tue Sep 18 04:45:46 2012 +0300
     1.3 @@ -58,7 +58,7 @@
     1.4  const Tile::AudioSourceDesc &Tile::get_audio_source(int idx) const
     1.5  {
     1.6  	if(idx < 0 || idx >= (int)ausrc.size()) {
     1.7 -		static AudioSourceDesc d = { Vector3(), 0 };
     1.8 +		static AudioSourceDesc d = { 0, Vector3(), 0 };
     1.9  		return d;
    1.10  	}
    1.11  	return ausrc[idx];
    1.12 @@ -291,7 +291,7 @@
    1.13  				SampleSet *sampleset = tset->get_samples();
    1.14  				AudioSample *sample = sampleset->get("fire.ogg");
    1.15  				if(sample) {
    1.16 -					AudioSourceDesc adesc = {lt->get_position(), sample};
    1.17 +					AudioSourceDesc adesc = {side, lt->get_position(), sample};
    1.18  					ausrc.push_back(adesc);
    1.19  				}
    1.20  			}