From c3923adc3f5cd52bdc33114acf4b7837c3fa70c6 Mon Sep 17 00:00:00 2001 From: Eidolon Date: Wed, 27 Apr 2022 17:08:40 -0500 Subject: [PATCH] Make Lua TeleportMove call MoveOrigin --- src/lua_baselib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lua_baselib.c b/src/lua_baselib.c index fc4e321ed..d06badc12 100644 --- a/src/lua_baselib.c +++ b/src/lua_baselib.c @@ -1783,8 +1783,8 @@ static int lib_pTeleportMove(lua_State *L) INLEVEL if (!thing) return LUA_ErrInvalid(L, "mobj_t"); - LUA_Deprecated(L, "P_TeleportMove", "P_SetOrigin or P_MoveOrigin"); - lua_pushboolean(L, P_SetOrigin(thing, x, y, z)); + LUA_Deprecated(L, "P_TeleportMove", "P_SetOrigin\" or \"P_MoveOrigin"); + lua_pushboolean(L, P_MoveOrigin(thing, x, y, z)); LUA_PushUserdata(L, tmthing, META_MOBJ); P_SetTarget(&tmthing, ptmthing); return 2;