From 9af02159866bdf8b87800293d2a93916e1c0e96a Mon Sep 17 00:00:00 2001 From: dshaligram Date: Fri, 28 Dec 2007 17:49:03 +0000 Subject: [1849483] Warn player when fire_items_start option is blocking selection of the only available missile (note that this doesn't entirely address the problem). [1852034] Added greedy_items option to explore_stop to force greedy explore to stop and announce even items that it plans to pick up. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3137 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/libutil.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'crawl-ref/source/libutil.h') diff --git a/crawl-ref/source/libutil.h b/crawl-ref/source/libutil.h index 6ee786b452..f0f4c1a4ce 100644 --- a/crawl-ref/source/libutil.h +++ b/crawl-ref/source/libutil.h @@ -167,6 +167,17 @@ public: { val = oldval; } + + T value() const + { + return val; + } + + T original_value() const + { + return oldval; + } + private: T &val; T oldval; -- cgit v1.2.3-54-g00ecf