waypoint.c
changeset 5216 8bd14ee39af2
parent 4984 f717899efa25
child 5348 cbe04b6ce2fa
equal deleted inserted replaced
5215:b8fb685df4c5 5216:8bd14ee39af2
    34 	/* We don't use FOR_ALL here, because FOR_ALL skips invalid items.
    34 	/* We don't use FOR_ALL here, because FOR_ALL skips invalid items.
    35 	 * TODO - This is just a temporary stage, this will be removed. */
    35 	 * TODO - This is just a temporary stage, this will be removed. */
    36 	for (wp = GetWaypoint(start_item); wp != NULL; wp = (wp->index + 1U < GetWaypointPoolSize()) ? GetWaypoint(wp->index + 1U) : NULL) wp->index = start_item++;
    36 	for (wp = GetWaypoint(start_item); wp != NULL; wp = (wp->index + 1U < GetWaypointPoolSize()) ? GetWaypoint(wp->index + 1U) : NULL) wp->index = start_item++;
    37 }
    37 }
    38 
    38 
    39 DEFINE_POOL(Waypoint, Waypoint, WaypointPoolNewBlock, NULL)
    39 DEFINE_OLD_POOL(Waypoint, Waypoint, WaypointPoolNewBlock, NULL)
    40 
    40 
    41 /* Create a new waypoint */
    41 /* Create a new waypoint */
    42 static Waypoint* AllocateWaypoint(void)
    42 static Waypoint* AllocateWaypoint(void)
    43 {
    43 {
    44 	Waypoint *wp;
    44 	Waypoint *wp;