summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/cio.h
diff options
context:
space:
mode:
authorHaran Pilpel <haranp@users.sourceforge.net>2010-01-23 08:47:22 +0200
committerHaran Pilpel <haranp@users.sourceforge.net>2010-01-23 08:47:22 +0200
commit9f331bee8b00bbf5f4bb2d669ab58402f5fadc18 (patch)
tree5e6b889674a59ace410b329d0050bf59e69390cf /crawl-ref/source/cio.h
parentdecb6b25c768d8e4ea0a2af37e5b4c699d86b036 (diff)
downloadcrawl-ref-9f331bee8b00bbf5f4bb2d669ab58402f5fadc18.tar.gz
crawl-ref-9f331bee8b00bbf5f4bb2d669ab58402f5fadc18.zip
Complete rewrite of direction(). Tiles people need to look at this.
Rewrite direction and make message spam much more controllable. Unfortunately, this seems to have had the side effect of making it much slower on tiles. Can the tiles people take a look at this and figure out what I'm doing wrong? Not 100% tested, might still have bugs.
Diffstat (limited to 'crawl-ref/source/cio.h')
-rw-r--r--crawl-ref/source/cio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/cio.h b/crawl-ref/source/cio.h
index e8b27e37d2..7eadb3a420 100644
--- a/crawl-ref/source/cio.h
+++ b/crawl-ref/source/cio.h
@@ -37,6 +37,7 @@ private:
};
void cursorxy(int x, int y);
+inline void cursorxy(const coord_def& p) { cursorxy(p.x, p.y); }
// Read one key, flag it as a mouse event if appropriate, but apply no
// other conversions. Defined in lib$OS.cc, not in cio.cc.