From cfeb3315cc8f25efdf966c9309b7dbfc58403d3d Mon Sep 17 00:00:00 2001 From: Magus Date: Thu, 22 Feb 2024 21:09:43 +0700 Subject: [PATCH] get rid of move_to spam in debug log, closes #202 --- scripts_src/headers/den.h | 4 +--- scripts_src/headers/v15.h | 6 ++---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/scripts_src/headers/den.h b/scripts_src/headers/den.h index aa8b17bcab..ed7f5ad323 100644 --- a/scripts_src/headers/den.h +++ b/scripts_src/headers/den.h @@ -1098,9 +1098,7 @@ variable the_follow_obj; #define set_metzger_ban(x) if (x > local_var(LVAR_METZGER_BAN)) then set_local_var(LVAR_METZGER_BAN, x) #define CHECK_LEVEL \ - if is_loading_game then \ - ndebug("error: attemmpting to use move_to in during loading"); \ - else if elevation(self_obj) != elevation(dude_obj) then \ + if elevation(self_obj) != elevation(dude_obj) then \ move_to(self_obj, self_tile, elevation(dude_obj)); #endif // DEN_H diff --git a/scripts_src/headers/v15.h b/scripts_src/headers/v15.h index e2991e3950..31af4c3fef 100644 --- a/scripts_src/headers/v15.h +++ b/scripts_src/headers/v15.h @@ -181,11 +181,9 @@ procedure getTimeBit begin if (time >= 2400 and time <= 2459) then return bit_24; end -//Used for warping to the level where NCR helps out +// Used for warping to the level where NCR helps out #define CHECK_LEVEL \ - if is_loading_game then \ - ndebug("error: attemmpting to use move_to in during loading"); \ - else if elevation(self_obj) != elevation(dude_obj) then \ + if elevation(self_obj) != elevation(dude_obj) then \ move_to(self_obj, self_tile, elevation(dude_obj)); #define CHECK_SQUATTERS_RUN \