Daniele Bartolini 10 år sedan
förälder
incheckning
e1ebddd742
2 ändrade filer med 4 tillägg och 5 borttagningar
  1. 3 3
      docs/lua_api.txt
  2. 1 2
      src/lua/lua_api.cpp

+ 3 - 3
docs/lua_api.txt

@@ -380,13 +380,13 @@ World
 	**set_listener_pose** (world, pose)
 		Sets the *pose* of the listener.
 
-	**set_sound_position** (world, position)
+	**set_sound_position** (world, id, position)
 		Sets the *position* of the sound *id*.
 
-	**set_sound_range** (world, range)
+	**set_sound_range** (world, id, range)
 		Sets the *range* of the sound *id*.
 
-	**set_sound_volume** (world, volume)
+	**set_sound_volume** (world, id, volume)
 		Sets the *volume* of the sound *id*.
 
 	**create_debug_line** (world, depth_test) : DebugLine

+ 1 - 2
src/lua/lua_api.cpp

@@ -1439,8 +1439,7 @@ static int world_set_sound_position(lua_State* L)
 static int world_set_sound_range(lua_State* L)
 {
 	LuaStack stack(L);
-	stack.get_world(1)->set_sound_range(stack.get_sound_instance_id(2),
-		stack.get_float(3));
+	stack.get_world(1)->set_sound_range(stack.get_sound_instance_id(2), stack.get_float(3));
 	return 0;
 }