From 4e13b00c33bc2c8f4cf422d4b220a9b42373828f Mon Sep 17 00:00:00 2001 From: Tyler Young Date: Tue, 6 Aug 2024 18:29:50 -0400 Subject: [PATCH] Fix function definition for Waypoints and silence unneeded developer print --- source/pr_cmds.c | 23 ++++++++++------------- source/r_alias.c | 2 +- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/source/pr_cmds.c b/source/pr_cmds.c index 718dd39..4b9ec59 100644 --- a/source/pr_cmds.c +++ b/source/pr_cmds.c @@ -2291,19 +2291,16 @@ unsigned short openset_waypoints[MAX_WAYPOINTS]; // List of waypoints currently unsigned short openset_length; // Current length of the open set zombie_ai zombie_list[MaxZombies]; -//Debug// -void printSortedOpenSet() -{ - // - // Debugs prints the current sorted list of waypoints in the open set - // - void sv_way_print_sorted_open_set() { - Con_Printf("Sorted open-set F-scores: "); - for(int i = 0; i < openset_length; i++) { - Con_Printf("%.0f, ",waypoints[openset_waypoints[i]].f_score); - } - Con_Printf("\n"); -} + +// +// Debugs prints the current sorted list of waypoints in the open set +// +void sv_way_print_sorted_open_set() { + Con_Printf("Sorted open-set F-scores: "); + for(int i = 0; i < openset_length; i++) { + Con_Printf("%.0f, ",waypoints[openset_waypoints[i]].f_score); + } + Con_Printf("\n"); } //------// diff --git a/source/r_alias.c b/source/r_alias.c index d95a7a7..501b877 100644 --- a/source/r_alias.c +++ b/source/r_alias.c @@ -533,7 +533,7 @@ void R_SetupAliasFrame (aliashdr_t *paliashdr, int frame, lerpdata_t *lerpdata) if ((frame >= paliashdr->numframes) || (frame < 0)) { - Con_DPrintf ("R_AliasSetupFrame: no such frame %d for '%s'\n", frame, e->model->name); + //Con_DPrintf ("R_AliasSetupFrame: no such frame %d for '%s'\n", frame, e->model->name); frame = 0; }