Mark ObjectRef::get_entity_name() deprecated
authorPerttu Ahola <celeron55@gmail.com>
Mon, 2 Jan 2012 15:33:03 +0000 (17:33 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Mon, 2 Jan 2012 15:33:03 +0000 (17:33 +0200)
data/mods/default/init.lua
src/scriptapi.cpp

index 073483d4e76d8d09b4c43e851ed0103f1dc6ab58..8de651efa9343cc6522f2084deaba18427f36815 100644 (file)
 -- -           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
index dbbaf3dc9493477a49d427621d8547abaf6f36ba..35b5973379e0414957ff9ef10b5a22bfda206270 100644 (file)
@@ -2026,6 +2026,7 @@ private:
                return 0;
        }
 
+       // DEPRECATED
        // get_entity_name(self)
        static int l_get_entity_name(lua_State *L)
        {