From a75a924ca5f67336d9e065ab307d976c4cd8fabc Mon Sep 17 00:00:00 2001 From: dshaligram Date: Mon, 4 Jun 2007 06:53:25 +0000 Subject: [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 --- crawl-ref/source/tags.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/tags.cc') diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc index d88f2dcda1..bbfc298549 100644 --- a/crawl-ref/source/tags.cc +++ b/crawl-ref/source/tags.cc @@ -1042,8 +1042,9 @@ static void tag_read_you(struct tagHeader &th, char minorVersion) you.base_magic_points = unmarshallShort(th); you.base_magic_points2 = unmarshallShort(th); - you.x_pos = unmarshallShort(th); - you.y_pos = unmarshallShort(th); + const int x = unmarshallShort(th); + const int y = unmarshallShort(th); + you.moveto(x, y); unmarshallString(th, you.class_name, 30); -- cgit v1.2.3-54-g00ecf