diff options
author | Vsevolod Kozlov <zaba@wybt.net> | 2011-06-25 21:13:26 +0400 |
---|---|---|
committer | Vsevolod Kozlov <zaba@wybt.net> | 2011-06-25 21:13:26 +0400 |
commit | 2ffcdb9acbd64229772e13ddaa8b0f530f373e9e (patch) | |
tree | a860b774813a24470383841f7d8c371bd10b6825 /crawl-ref/source/dgn-layouts.cc | |
parent | 92c9c079dd12997a189dc320c94f9da0fcbf75d0 (diff) | |
download | crawl-ref-2ffcdb9acbd64229772e13ddaa8b0f530f373e9e.tar.gz crawl-ref-2ffcdb9acbd64229772e13ddaa8b0f530f373e9e.zip |
Fix up some coordinate offsets to account for how count_features_in_box works.
This might be wrong, but it's hard to tell since the effect is not always
obvious.
Diffstat (limited to 'crawl-ref/source/dgn-layouts.cc')
-rw-r--r-- | crawl-ref/source/dgn-layouts.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/dgn-layouts.cc b/crawl-ref/source/dgn-layouts.cc index a1ab693f37..edcee4daa7 100644 --- a/crawl-ref/source/dgn-layouts.cc +++ b/crawl-ref/source/dgn-layouts.cc @@ -201,7 +201,7 @@ void dgn_build_chaotic_city_level(dungeon_feature_type force_wall) if (_find_forbidden_in_area(box, MMT_VAULT)) continue; - if (_count_antifeature_in_box(b1x-1, b1y-1, b2x+1, b2y+1, DNGN_FLOOR)) + if (_count_antifeature_in_box(b1x-1, b1y-1, b2x+2, b2y+2, DNGN_FLOOR)) continue; if (force_wall == NUM_FEATURES && one_chance_in(3)) @@ -213,7 +213,7 @@ void dgn_build_chaotic_city_level(dungeon_feature_type force_wall) } if (one_chance_in(3)) - _box_room(b1x, b2x - 1, b1y, b2y - 1, drawing); + _box_room(b1x, b2x, b1y, b2y, drawing); else dgn_replace_area(b1x, b1y, b2x, b2y, DNGN_FLOOR, drawing); } @@ -271,7 +271,7 @@ void dgn_build_rooms_level(int nrooms) if (i > 0 && exclusive && _count_antifeature_in_box(room.pos.x - 1, room.pos.y - 1, - end.x, end.y, DNGN_ROCK_WALL)) + end.x + 2, end.y + 2, DNGN_ROCK_WALL)) { continue; } |