mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-25 10:57:59 +00:00
finalizer struct, and fixed animations breaking
This commit is contained in:
6
hyper.h
6
hyper.h
@@ -628,6 +628,12 @@ template<class T> struct dynamicval {
|
||||
~dynamicval() { where = backup; }
|
||||
};
|
||||
|
||||
struct finalizer {
|
||||
reaction_t f;
|
||||
finalizer(reaction_t r) : f(r) {}
|
||||
~finalizer() { f(); }
|
||||
};
|
||||
|
||||
static const int MAXPLAYER = 7;
|
||||
|
||||
#define DEFAULTCONTROL (multi::players == 1 && !shmup::on && !multi::alwaysuse && !(rug::rugged && rug::renderonce))
|
||||
|
||||
Reference in New Issue
Block a user