From d72e8d61de2f7efba3685dda2dc52b31f64f8a6e Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sat, 31 Mar 2018 16:04:04 +0200 Subject: 3D audio. --- src/game/units.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game/units.cpp') diff --git a/src/game/units.cpp b/src/game/units.cpp index 30cfdd5..47e729c 100644 --- a/src/game/units.cpp +++ b/src/game/units.cpp @@ -354,7 +354,7 @@ void unit_soldier_t::shoot(v2f_t aim) flash->place(&game->world); last_attack = game->now; - assets::soldier.fire.play(); + assets::soldier.fire.play_3d(x); //target->damage(3, this); FIXME } @@ -458,7 +458,7 @@ void unit_soldier_t::on_think(void) if (move.moving && (x - move.last_step).len() > 0.5f) { move.last_step = x; - assets::soldier.step_stone.play(); + assets::soldier.step_stone.play_3d(x); } } -- cgit