src/waypoint.h
changeset 6928 44797333bcbf
parent 6573 7624f942237f
child 6720 35756db7e577
equal deleted inserted replaced
6927:0ed416264b17 6928:44797333bcbf
     1 /* $Id$ */
     1 /* $Id$ */
       
     2 
       
     3 /** @file waypoint.h */
     2 
     4 
     3 #ifndef WAYPOINT_H
     5 #ifndef WAYPOINT_H
     4 #define WAYPOINT_H
     6 #define WAYPOINT_H
     5 
     7 
     6 #include "oldpool.h"
     8 #include "oldpool.h"
    26 
    28 
    27 DECLARE_OLD_POOL(Waypoint, Waypoint, 3, 8000)
    29 DECLARE_OLD_POOL(Waypoint, Waypoint, 3, 8000)
    28 
    30 
    29 /**
    31 /**
    30  * Check if a Waypoint really exists.
    32  * Check if a Waypoint really exists.
       
    33  * @param wp Waypoint to query
       
    34  * @return the validity of the waypoint
    31  */
    35  */
    32 static inline bool IsValidWaypoint(const Waypoint *wp)
    36 static inline bool IsValidWaypoint(const Waypoint *wp)
    33 {
    37 {
    34 	return wp->xy != 0;
    38 	return wp->xy != 0;
    35 }
    39 }