summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/viewgeom.h
diff options
context:
space:
mode:
authorFlorian Diebold <flodiebold@gmail.com>2011-06-14 15:35:40 +0200
committerFlorian Diebold <flodiebold@gmail.com>2011-06-26 17:41:32 +0200
commit63b13ec150a08b01e3a44ac6049809e385280224 (patch)
treef2b8f4d4ec5560b24548e1b8eab218aad93e2089 /crawl-ref/source/viewgeom.h
parente8b245539e6a61837bd5b3b77fc550bedf843d5e (diff)
downloadcrawl-ref-63b13ec150a08b01e3a44ac6049809e385280224.tar.gz
crawl-ref-63b13ec150a08b01e3a44ac6049809e385280224.zip
Remove the hack to render the whole map into craw_view.vbuf.
Instead, the cells not in crawl_view.vbuf are now rendered in load_dungeon.
Diffstat (limited to 'crawl-ref/source/viewgeom.h')
-rw-r--r--crawl-ref/source/viewgeom.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/crawl-ref/source/viewgeom.h b/crawl-ref/source/viewgeom.h
index da5477dc4e..758e983d32 100644
--- a/crawl-ref/source/viewgeom.h
+++ b/crawl-ref/source/viewgeom.h
@@ -77,20 +77,12 @@ public:
inline coord_def view2grid(const coord_def &pos) const
{
-#ifdef USE_TILE_WEB
- return (pos - coord_def(1, 1));
-#else
return (pos - viewhalfsz + vgrdc - coord_def(1, 1));
-#endif
}
inline coord_def grid2view(const coord_def &pos) const
{
-#ifdef USE_TILE_WEB
- return (pos + coord_def(1, 1));
-#else
return (pos - vgrdc + viewhalfsz + coord_def(1, 1));
-#endif
}
inline coord_def view2show(const coord_def &pos) const