From 81612f62ebb9c6f74314875af2d4b92cfcdcfc67 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Fri, 22 Jun 2007 11:14:27 +0000 Subject: Labyrinths get tricoloured walls: rock at the periphery, stone further in, and metal walls closest to the minotaur vault. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1620 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/externs.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crawl-ref/source/externs.h') diff --git a/crawl-ref/source/externs.h b/crawl-ref/source/externs.h index c141eb5e71..303bef9abc 100644 --- a/crawl-ref/source/externs.h +++ b/crawl-ref/source/externs.h @@ -22,6 +22,7 @@ #include #include #include +#include #include @@ -333,6 +334,11 @@ struct coord_def { return (x * x + y * y); } + + int rdist() const + { + return (MAXIMUM(::abs(x), ::abs(y))); + } }; struct dice_def -- cgit v1.2.3-54-g00ecf