From fd34c17a54e69fa53b0b6ae7123fdbd60e6303f7 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sat, 30 Jun 2007 15:49:18 +0000 Subject: [1742338] Fixed Hell portals not being revealed correctly when the horn is sounded. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1701 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/libunix.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/libunix.cc') diff --git a/crawl-ref/source/libunix.cc b/crawl-ref/source/libunix.cc index 84d0beaa80..8e6ea6fce9 100644 --- a/crawl-ref/source/libunix.cc +++ b/crawl-ref/source/libunix.cc @@ -230,7 +230,8 @@ void set_mouse_enabled(bool enabled) { #ifdef NCURSES_MOUSE_VERSION const int mask = enabled? ALL_MOUSE_EVENTS | REPORT_MOUSE_POSITION : 0; - mousemask(mask, NULL); + mmask_t oldmask = 0; + mousemask(mask, &oldmask); #endif } -- cgit v1.2.3-54-g00ecf