equal
deleted
inserted
replaced
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 } |