diff options
Diffstat (limited to 'crawl-ref/source/stuff.h')
-rw-r--r-- | crawl-ref/source/stuff.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/stuff.h b/crawl-ref/source/stuff.h index 8d98e78b16..27c8ec519e 100644 --- a/crawl-ref/source/stuff.h +++ b/crawl-ref/source/stuff.h @@ -121,5 +121,12 @@ template <typename Z> inline Z sgn(Z x) bool is_trap_square(int x, int y); void zap_los_monsters(); +class rng_save_excursion +{ +public: + rng_save_excursion() { push_rng_state(); } + ~rng_save_excursion() { pop_rng_state(); } +}; + #endif |