summaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_particles.cpp
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-04-29 17:47:34 +0200
committersapier <Sapier at GMX dot net>2014-04-29 22:49:04 +0200
commitb5acec0a3c5701c53854ff7afdf4008863e6e8df (patch)
tree19ed8671c3b56e82e803c51eaad92948b806d13a /src/script/lua_api/l_particles.cpp
parentc03d7dc8a7c35708a39f9c14e2df243e212b283b (diff)
downloadminetest-b5acec0a3c5701c53854ff7afdf4008863e6e8df.tar.gz
minetest-b5acec0a3c5701c53854ff7afdf4008863e6e8df.tar.bz2
minetest-b5acec0a3c5701c53854ff7afdf4008863e6e8df.zip
Add proper lua api deprecated handling
Diffstat (limited to 'src/script/lua_api/l_particles.cpp')
-rw-r--r--src/script/lua_api/l_particles.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/lua_api/l_particles.cpp b/src/script/lua_api/l_particles.cpp
index 088eba06e..6769f5c23 100644
--- a/src/script/lua_api/l_particles.cpp
+++ b/src/script/lua_api/l_particles.cpp
@@ -44,6 +44,7 @@ int ModApiParticles::l_add_particle(lua_State *L)
if (lua_gettop(L) > 1) // deprecated
{
+ log_deprecated(L,"Deprecated add_particle call with individual parameters instead of definition");
pos = check_v3f(L, 1);
vel = check_v3f(L, 2);
acc = check_v3f(L, 3);
@@ -128,6 +129,7 @@ int ModApiParticles::l_add_particlespawner(lua_State *L)
if (lua_gettop(L) > 1) //deprecated
{
+ log_deprecated(L,"Deprecated add_particlespawner call with individual parameters instead of definition");
amount = luaL_checknumber(L, 1);
time = luaL_checknumber(L, 2);
minpos = check_v3f(L, 3);