diff options
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/monplace.cc | 4 | ||||
-rw-r--r-- | crawl-ref/source/monstuff.cc | 2 |
2 files changed, 3 insertions, 3 deletions
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; |