Fix function definition for Waypoints and silence unneeded developer print

This commit is contained in:
Tyler Young 2024-08-06 18:29:50 -04:00
parent 91d516960d
commit 4e13b00c33
2 changed files with 11 additions and 14 deletions

View file

@ -2291,19 +2291,16 @@ unsigned short openset_waypoints[MAX_WAYPOINTS]; // List of waypoints currently
unsigned short openset_length; // Current length of the open set unsigned short openset_length; // Current length of the open set
zombie_ai zombie_list[MaxZombies]; zombie_ai zombie_list[MaxZombies];
//Debug//
void printSortedOpenSet() //
{ // Debugs prints the current sorted list of waypoints in the open set
// //
// 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: ");
void sv_way_print_sorted_open_set() { for(int i = 0; i < openset_length; i++) {
Con_Printf("Sorted open-set F-scores: "); Con_Printf("%.0f, ",waypoints[openset_waypoints[i]].f_score);
for(int i = 0; i < openset_length; i++) { }
Con_Printf("%.0f, ",waypoints[openset_waypoints[i]].f_score); Con_Printf("\n");
}
Con_Printf("\n");
}
} }
//------// //------//

View file

@ -533,7 +533,7 @@ void R_SetupAliasFrame (aliashdr_t *paliashdr, int frame, lerpdata_t *lerpdata)
if ((frame >= paliashdr->numframes) || (frame < 0)) 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; frame = 0;
} }