From 3efbe62a414cec973d49b462dbe5de301c5b48b6 Mon Sep 17 00:00:00 2001 From: Sryder Date: Sat, 8 Dec 2018 20:34:38 +0000 Subject: [PATCH] Fix a comment and other minor edits --- src/k_waypoint.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/k_waypoint.c b/src/k_waypoint.c index be0ff44fc..a34215f42 100644 --- a/src/k_waypoint.c +++ b/src/k_waypoint.c @@ -73,7 +73,7 @@ searchwaypointstart: } } - // Matching waypoint was found down this path + // Matching waypoint was not found down this path return NULL; } @@ -126,7 +126,7 @@ static void K_AddPrevToWaypoint(waypoint_t *waypoint, waypoint_t *prevwaypoint) if (!waypoint->prevwaypoints) { - I_Error("K_AddPrevToWaypoint: Out of Memory"); + I_Error("K_AddPrevToWaypoint: Failed to reallocate memory for previous waypoints."); } waypoint->prevwaypoints[waypoint->numprevwaypoints - 1] = prevwaypoint; @@ -251,7 +251,7 @@ static waypoint_t *K_SetupWaypoint(mobj_t *mobj) --------------------------------------------------*/ void K_SetupWaypointList() { - if (waypointcap == NULL) + if (!waypointcap) { CONS_Debug(DBG_GAMELOGIC, "WARNING: K_SetupWaypointList called with no waypointcap."); }