aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_particles.cpp
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-10-25 00:45:18 -0400
committerkwolekr <kwolekr@minetest.net>2015-10-25 23:06:48 -0400
commit54f1267c2c87daea769966c694777a2e5977f870 (patch)
treeae08897774c1b1d1ecae0ad1a31b147c9c98dd02 /src/script/lua_api/l_particles.cpp
parent3936a5e3f71d46e61f819b8f6c85dd47a440f21e (diff)
downloadminetest-54f1267c2c87daea769966c694777a2e5977f870.tar.gz
minetest-54f1267c2c87daea769966c694777a2e5977f870.tar.bz2
minetest-54f1267c2c87daea769966c694777a2e5977f870.zip
SAPI: Mark all Lua API functions requiring envlock
Diffstat (limited to 'src/script/lua_api/l_particles.cpp')
-rw-r--r--src/script/lua_api/l_particles.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/script/lua_api/l_particles.cpp b/src/script/lua_api/l_particles.cpp
index 2532b2b08..f6c1725de 100644
--- a/src/script/lua_api/l_particles.cpp
+++ b/src/script/lua_api/l_particles.cpp
@@ -32,6 +32,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
// texture = e.g."default_wood.png"
int ModApiParticles::l_add_particle(lua_State *L)
{
+ MAP_LOCK_REQUIRED;
+
// Get parameters
v3f pos, vel, acc;
pos = vel = acc = v3f(0, 0, 0);
@@ -119,6 +121,8 @@ int ModApiParticles::l_add_particle(lua_State *L)
// texture = e.g."default_wood.png"
int ModApiParticles::l_add_particlespawner(lua_State *L)
{
+ MAP_LOCK_REQUIRED;
+
// Get parameters
u16 amount = 1;
v3f minpos, maxpos, minvel, maxvel, minacc, maxacc;
@@ -208,6 +212,8 @@ int ModApiParticles::l_add_particlespawner(lua_State *L)
// player (string) is optional
int ModApiParticles::l_delete_particlespawner(lua_State *L)
{
+ MAP_LOCK_REQUIRED;
+
// Get parameters
u32 id = luaL_checknumber(L, 1);
std::string playername = "";