dungeon_crawler

diff prototype/src/main.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/main.cc	Tue Sep 18 00:34:29 2012 +0300
     1.2 +++ b/prototype/src/main.cc	Tue Sep 18 04:45:46 2012 +0300
     1.3 @@ -271,8 +271,11 @@
     1.4  	level->set_player_position(cam.get_position());
     1.5  	level->update(msec, dt);
     1.6  
     1.7 -	// play the walking sound if we're walking
     1.8  	if(cfg.sound) {
     1.9 +		// set the listener matrix
    1.10 +		set_audio_listener(cam.matrix());
    1.11 +
    1.12 +		// play the walking sound if we're walking
    1.13  		int cellx, celly;
    1.14  		level->get_cell_coords_at(cam.get_position(), &cellx, &celly);
    1.15