From: Perttu Ahola Date: Mon, 2 Jan 2012 15:33:03 +0000 (+0200) Subject: Mark ObjectRef::get_entity_name() deprecated X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=e82a76e43848eae556843709b66b6c8703354931;p=zefram%2Fminetest%2Fminetest_engine.git Mark ObjectRef::get_entity_name() deprecated --- diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua index 073483d4..8de651ef 100644 --- a/data/mods/default/init.lua +++ b/data/mods/default/init.lua @@ -210,7 +210,7 @@ -- - select_horiz_by_yawpitch=false) -- - ^ Select sprite from spritesheet with optional animation and DM-style -- - texture selection based on yaw relative to camera --- - get_entity_name() +-- - get_entity_name() (DEPRECATED: Will be removed in a future version) -- - get_luaentity() -- Player-only: (no-op for other objects) -- - get_player_name(): will return nil if is not a player diff --git a/src/scriptapi.cpp b/src/scriptapi.cpp index dbbaf3dc..35b59733 100644 --- a/src/scriptapi.cpp +++ b/src/scriptapi.cpp @@ -2026,6 +2026,7 @@ private: return 0; } + // DEPRECATED // get_entity_name(self) static int l_get_entity_name(lua_State *L) {