From 59088a6aff05b2afec1d7bd6c51f3f99cd819af8 Mon Sep 17 00:00:00 2001 From: dolorous Date: Wed, 26 Nov 2008 04:49:42 +0000 Subject: Add minor cosmetic fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7630 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/monplace.cc | 4 ++-- crawl-ref/source/monstuff.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source') diff --git a/crawl-ref/source/monplace.cc b/crawl-ref/source/monplace.cc index 49769d06e4..e92d9434da 100644 --- a/crawl-ref/source/monplace.cc +++ b/crawl-ref/source/monplace.cc @@ -837,9 +837,9 @@ static int _place_monster_aux( const mgen_data &mg, } else { - int i = 0; + int i; // We'll try 1000 times for a good spot. - for ( ; i < 1000; i++) + for (i = 0; i < 1000; ++i) { fpos = mg.pos + coord_def( random_range(-3, 3), random_range(-3, 3) ); diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index e742b8c76f..7810c20034 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -1804,7 +1804,7 @@ bool random_near_space(const coord_def& origin, coord_def& target, int tries = 0; while (tries++ < 150) { - coord_def delta( random2(14), random2(14) ); + coord_def delta(random2(14), random2(14)); target = origin - coord_def(6,6) + delta; -- cgit v1.2.3-54-g00ecf