From 7221769f8dbb5a696b559aa89b1feacda462c100 Mon Sep 17 00:00:00 2001 From: Erich Newey Date: Sun, 22 Oct 2023 12:15:51 -0600 Subject: [PATCH] StringVars: remove debug statements --- src/game_interpreter.cpp | 3 +-- src/game_strings.cpp | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/game_interpreter.cpp b/src/game_interpreter.cpp index f31fe8aeb8..0b61a59070 100644 --- a/src/game_interpreter.cpp +++ b/src/game_interpreter.cpp @@ -4841,8 +4841,7 @@ bool Game_Interpreter::CommandManiacControlStrings(lcf::rpg::EventCommand const& { std::string op_string = ""; std::string delimiter = (std::string)Main_Data::game_strings->GetWithMode(str_param, args[0], modes[0]); - Output::Debug("args {} {} {}", args[0], args[1], args[2]); - Output::Debug("modes {} {} {}", modes[0], modes[1], modes[2]); + // args[1] & mode[1] relates to starting ID for strings to join // mode 0 = id literal, 1 = direct var, 2 = var literal, 3 = direct var args[1] = ValueOrVariable(modes[1] % 2, args[1]); diff --git a/src/game_strings.cpp b/src/game_strings.cpp index 96a82ef766..913a596a65 100644 --- a/src/game_strings.cpp +++ b/src/game_strings.cpp @@ -77,8 +77,6 @@ int Game_Strings::InStr(Str_Params params, std::string search, int var_id, int b std::string str = Get(params.string_id); - Output::Debug("Searching for {} in {}", search, str); - int index = Get(params.string_id).find(search, begin); Main_Data::game_variables->Set(var_id, index); return index;