summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorPilzAdam <pilzadam@minetest.net>2013-03-25 23:59:17 +0100
committerPilzAdam <pilzadam@minetest.net>2013-03-29 20:14:18 +0100
commit5e7e0347cdae0cab3b7d003fbd3b22c7f820e703 (patch)
treefd7b2b8b1c9564ac0418570ab54238722d2b8880 /src/game.cpp
parent7d9329ecfe84733cdefa34eab25ee3d124c94c59 (diff)
downloadminetest-5e7e0347cdae0cab3b7d003fbd3b22c7f820e703.tar.gz
minetest-5e7e0347cdae0cab3b7d003fbd3b22c7f820e703.tar.bz2
minetest-5e7e0347cdae0cab3b7d003fbd3b22c7f820e703.zip
Add different place sound for nodes
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 58ca654a0..5e4e06148 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -2394,11 +2394,6 @@ void the_game(
}
}
- // We can't actually know, but assume the sound of right-clicking
- // to be the sound of placing a node
- soundmaker.m_player_rightpunch_sound.gain = 0.5;
- soundmaker.m_player_rightpunch_sound.name = "default_place_node";
-
/*
Handle digging
*/
@@ -2617,6 +2612,9 @@ void the_game(
<<") - Position not loaded"<<std::endl;
}
}while(0);
+
+ // Read the sound
+ soundmaker.m_player_rightpunch_sound = def.sound_place;
}
}
}