Skip to content

Commit

Permalink
get rid of move_to spam in debug log, closes #202
Browse files Browse the repository at this point in the history
  • Loading branch information
burner1024 committed Feb 22, 2024
1 parent a513457 commit cfeb331
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions scripts_src/headers/den.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 2 additions & 4 deletions scripts_src/headers/v15.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit cfeb331

Please sign in to comment.