From 6c9f75bfac7d31a57c2ff2116f0127e82c0c313b Mon Sep 17 00:00:00 2001 From: jyelon Date: Tue, 2 Jun 2026 02:52:42 -0400 Subject: [PATCH] Remove error checking from redirect --- luprex/cpp/core/world-accessor.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/luprex/cpp/core/world-accessor.cpp b/luprex/cpp/core/world-accessor.cpp index 118f52ff..b29fab2d 100644 --- a/luprex/cpp/core/world-accessor.cpp +++ b/luprex/cpp/core/world-accessor.cpp @@ -379,14 +379,14 @@ LuaDefine(tangible_redirect, "actor1, actor2", World *w = World::fetch_global_pointer(L); Tangible *actor1 = w->tangible_get(LS, lactor1, true); Tangible *actor2 = w->tangible_get(LS, lactor2, true); - if (!actor1->is_controlled_) { - luaL_error(L, "Actor1 is not a controlled actor."); - return 0; - } - if ((!actor2->can_be_controlled_) || (actor2->is_controlled_)) { - luaL_error(L, "Actor2 is not an uncontrolled actor."); - return 0; - } + // if (!actor1->is_controlled_) { + // luaL_error(L, "Actor1 is not a controlled actor."); + // return 0; + // } + // if ((!actor2->can_be_controlled_) || (actor2->is_controlled_)) { + // luaL_error(L, "Actor2 is not an uncontrolled actor."); + // return 0; + // } w->add_redirect(actor1->id(), actor2->id()); return LS.result(); }