diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-26 04:49:42 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-26 04:49:42 +0000 |
commit | 59088a6aff05b2afec1d7bd6c51f3f99cd819af8 (patch) | |
tree | 13c34f4fa48d676f9f7221f2f87674e4d2aba0f5 /crawl-ref | |
parent | 9629076ee9f0b7a88048c0eb6d979c5d86a7a3d2 (diff) | |
download | crawl-ref-59088a6aff05b2afec1d7bd6c51f3f99cd819af8.tar.gz crawl-ref-59088a6aff05b2afec1d7bd6c51f3f99cd819af8.zip |
Add minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7630 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-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; |