diff options
Diffstat (limited to 'src/koopatlas/mapdata.h')
| -rw-r--r-- | src/koopatlas/mapdata.h | 9 | 
1 files changed, 8 insertions, 1 deletions
diff --git a/src/koopatlas/mapdata.h b/src/koopatlas/mapdata.h index e75925d..913c933 100644 --- a/src/koopatlas/mapdata.h +++ b/src/koopatlas/mapdata.h @@ -67,10 +67,17 @@ struct dKPNode_s {  	NodeTypes type;  	union {  		struct { u8 levelNumber[2]; }; -		struct { char *destMap; u8 thisID, foreignID, transition; }; +		struct { const char *destMap; u8 thisID, foreignID, transition; };  	}; +	dKPPath_s *getAnyExit() { +		for (int i = 0; i < 4; i++) +			if (exits[i]) +				return exits[i]; +		return 0; +	} +  	dKPPath_s *getOppositeExitTo(dKPPath_s *path);  };  | 
