summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-26 15:38:40 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-26 15:38:40 +0000
commit17fb80af7acbed035921b894f2b2712f93afd670 (patch)
tree272ce229e35e326f0ad2ed492bfd5e154235ed5b /crawl-ref/source/view.cc
parent416bb292eb8bab5f0bb094a369921703663e5bb6 (diff)
downloadcrawl-ref-17fb80af7acbed035921b894f2b2712f93afd670.tar.gz
crawl-ref-17fb80af7acbed035921b894f2b2712f93afd670.zip
Simplify monster_random_space().
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8790 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r--crawl-ref/source/view.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc
index b0866f06a1..1755de2a30 100644
--- a/crawl-ref/source/view.cc
+++ b/crawl-ref/source/view.cc
@@ -3120,7 +3120,7 @@ static int _find_feature(int feature, int curs_x, int curs_y,
int matchcount = 0;
// Find the first occurrence of feature 'feature', spiralling around (x,y)
- int maxradius = GXM > GYM? GXM : GYM;
+ int maxradius = GXM > GYM ? GXM : GYM;
for (int radius = 1; radius < maxradius; ++radius)
for (int axis = -2; axis < 2; ++axis)
{