From e82a76e43848eae556843709b66b6c8703354931 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 2 Jan 2012 17:33:03 +0200 Subject: [PATCH] Mark ObjectRef::get_entity_name() deprecated --- data/mods/default/init.lua | 2 +- src/scriptapi.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.30.2