summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tileweb.cc
diff options
context:
space:
mode:
authorKyle Fox <kylejfox@gmail.com>2013-04-13 23:32:02 -0500
committerPekka Lampila <pekka.lampila@iki.fi>2013-12-06 03:55:58 +0200
commit85c66a120e1ef456a90646685c0f0f581a3080d1 (patch)
treeb93184aed00b79f58808f1b5b4dd4d5e230dfaf1 /crawl-ref/source/tileweb.cc
parent8511db5fb3becc41fa4d8e8d2015b06f7e56e112 (diff)
downloadcrawl-ref-85c66a120e1ef456a90646685c0f0f581a3080d1.tar.gz
crawl-ref-85c66a120e1ef456a90646685c0f0f581a3080d1.zip
Fixed use of arrows and other special keys in OS X versions of webtiles.
The code was written assuming wint_t's are unsigned and therefore positive if not 0. This is not necessarily true for all environments.
Diffstat (limited to 'crawl-ref/source/tileweb.cc')
-rw-r--r--crawl-ref/source/tileweb.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/tileweb.cc b/crawl-ref/source/tileweb.cc
index ae58af7acf..9a76dcb06c 100644
--- a/crawl-ref/source/tileweb.cc
+++ b/crawl-ref/source/tileweb.cc
@@ -382,7 +382,7 @@ bool TilesFramework::await_input(wint_t& c, bool block)
{
c = _receive_control_message();
- if (c > 0)
+ if (c != 0)
return true;
}