From: terencehill Date: Tue, 13 Aug 2019 11:14:43 +0000 (+0200) Subject: Reduce LOG_INFO calls in bot waypoint code X-Git-Tag: xonotic-v0.8.5~1397 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=aab8ccc89fbdce6c4b7fcafbb0b3d48b719f9245 Reduce LOG_INFO calls in bot waypoint code --- diff --git a/qcsrc/server/bot/default/waypoints.qc b/qcsrc/server/bot/default/waypoints.qc index d69a89400f..6bc9077014 100644 --- a/qcsrc/server/bot/default/waypoints.qc +++ b/qcsrc/server/bot/default/waypoints.qc @@ -1303,6 +1303,7 @@ float waypoint_loadall() if (autocvar_g_waypointeditor && autocvar_g_waypointeditor_symmetrical_allowload) { + string sym_str = ""; cvar_set("g_waypointeditor_symmetrical", ftos(sym)); if (sym == 1 && sym_param3 < 2) cvar_set("g_waypointeditor_symmetrical_order", "0"); // make sure this is reset if not loaded @@ -1317,16 +1318,18 @@ float waypoint_loadall() cvar_set("g_waypointeditor_symmetrical_origin", params); } cvar_set("g_waypointeditor_symmetrical_order", ftos(sym_param3)); - LOG_INFO("Waypoint editor: loaded symmetry ", ftos(sym), " with origin ", params, " and order ", ftos(sym_param3)); + sym_str = strcat(ftos(sym), " with origin ", params, " and order ", ftos(sym_param3)); } else if (sym == -2) { string params = strcat(ftos(sym_param1), " ", ftos(sym_param2)); cvar_set("g_waypointeditor_symmetrical_axis", params); - LOG_INFO("Waypoint editor: loaded symmetry ", ftos(sym), " with axis ", params); + sym_str = strcat(ftos(sym), " with axis ", params); } else - LOG_INFO("Waypoint editor: loaded symmetry ", ftos(sym)); + sym_str = ftos(sym); + if (sym_str != "") + LOG_INFO("Waypoint editor: loaded symmetry ", sym_str); LOG_INFO(strcat("g_waypointeditor_symmetrical", " has been set to ", cvar_string("g_waypointeditor_symmetrical"))); }