diff options
Diffstat (limited to 'crawl-ref/source/stuff.cc')
-rw-r--r-- | crawl-ref/source/stuff.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/stuff.cc b/crawl-ref/source/stuff.cc index af677759ce..e948dbbcdd 100644 --- a/crawl-ref/source/stuff.cc +++ b/crawl-ref/source/stuff.cc @@ -334,6 +334,8 @@ void cio_init() init_libdos(); #endif + crawl_view.init_geometry(); + io_inited = true; } @@ -1050,9 +1052,9 @@ void zap_los_monsters() { losight(env.show, grd, you.x_pos, you.y_pos); - for (int y = LOS_SY; y <= LOS_EY; ++y) + for (int y = crawl_view.vlos1.y; y <= crawl_view.vlos2.y; ++y) { - for (int x = LOS_SX; x <= LOS_EX; ++x) + for (int x = crawl_view.vlos1.x; x <= crawl_view.vlos2.x; ++x) { if (!in_vlos(x, y)) continue; |