diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-06-04 06:53:25 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-06-04 06:53:25 +0000 |
commit | a75a924ca5f67336d9e065ab307d976c4cd8fabc (patch) | |
tree | 052710fb2cac216521e398e8774426092426bf41 /crawl-ref/source/abyss.cc | |
parent | b53b7421dc0bda8dc3a4713cad64a6275132261c (diff) | |
download | crawl-ref-a75a924ca5f67336d9e065ab307d976c4cd8fabc.tar.gz crawl-ref-a75a924ca5f67336d9e065ab307d976c4cd8fabc.zip |
[1699948] Allow changing the viewport size if you're using a larger terminal
than 80x24. Also allow moving the PC around the viewport without scrolling the
viewport if the viewport is large enough.
This is not tested on DOS and Windows yet.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1524 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/abyss.cc')
-rw-r--r-- | crawl-ref/source/abyss.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/crawl-ref/source/abyss.cc b/crawl-ref/source/abyss.cc index 68b64edfcc..6dbf138ada 100644 --- a/crawl-ref/source/abyss.cc +++ b/crawl-ref/source/abyss.cc @@ -282,8 +282,7 @@ void area_shift(void) } } - you.x_pos = 45; - you.y_pos = 35; + you.moveto(45, 35); generate_area(5, 5, (GXM - 5), (GYM - 5)); @@ -331,8 +330,7 @@ void abyss_teleport( bool new_area ) if (i < 100) { - you.x_pos = x; - you.y_pos = y; + you.moveto(x, y); return; } } @@ -384,8 +382,7 @@ void abyss_teleport( bool new_area ) ASSERT( env.cloud_no == 0 ); - you.x_pos = 45; - you.y_pos = 35; + you.moveto(45, 35); generate_area( 10, 10, (GXM - 10), (GYM - 10) ); |