diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-27 04:22:32 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-27 04:22:32 +0000 |
commit | f155d043cb1e2e9b11dca676d6b470d081627499 (patch) | |
tree | 4d3fcc5c391066da9c50daae9d35967a82863311 /crawl-ref/source/mtransit.cc | |
parent | a77e1d86ee4ce3d49c49750bee70a0fabfcf17a1 (diff) | |
download | crawl-ref-f155d043cb1e2e9b11dca676d6b470d081627499.tar.gz crawl-ref-f155d043cb1e2e9b11dca676d6b470d081627499.zip |
Fix a few more potential monster positioning problems.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9251 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mtransit.cc')
-rw-r--r-- | crawl-ref/source/mtransit.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crawl-ref/source/mtransit.cc b/crawl-ref/source/mtransit.cc index 45f4c9ba3e..6f04a51138 100644 --- a/crawl-ref/source/mtransit.cc +++ b/crawl-ref/source/mtransit.cc @@ -208,10 +208,7 @@ void place_transiting_items() coord_def pos = item->pos; if (!in_bounds(pos)) - { - pos.x = random_range(X_BOUND_1 + 1, X_BOUND_2 - 1); - pos.y = random_range(Y_BOUND_1 + 1, Y_BOUND_2 - 1); - } + pos = random_in_bounds(); const coord_def where_to_go = dgn_find_nearby_stair(DNGN_ESCAPE_HATCH_DOWN, |