Change IS_CHILD to inline function

This commit is contained in:
Kp 2014-06-07 17:46:32 +00:00
parent 915b78b5e1
commit 9979302303

View file

@ -79,7 +79,10 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
// Returns true if segnum references a child, else returns false.
// Note that -1 means no connection, -2 means a connection to the outside world.
#define IS_CHILD(segnum) (segnum > -1)
static inline bool IS_CHILD(segnum_t s)
{
return s != segment_none && s != segment_exit;
}
//Structure for storing u,v,light values.
//NOTE: this structure should be the same as the one in 3d.h