mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-19 20:40:10 +00:00
added hooks_post_initgame
This commit is contained in:
parent
a4f7bc1ee6
commit
eaa2a45932
@ -151,6 +151,9 @@ EX void welcomeMessage() {
|
|||||||
/** \brief These hooks are called at the start of initgame. */
|
/** \brief These hooks are called at the start of initgame. */
|
||||||
EX hookset<void()> hooks_initgame;
|
EX hookset<void()> hooks_initgame;
|
||||||
|
|
||||||
|
/** \brief These hooks are called at the end of initgame. */
|
||||||
|
EX hookset<void()> hooks_post_initgame;
|
||||||
|
|
||||||
/** \brief initialize the game */
|
/** \brief initialize the game */
|
||||||
EX void initgame() {
|
EX void initgame() {
|
||||||
DEBBI(DF_INIT, ("initGame"));
|
DEBBI(DF_INIT, ("initGame"));
|
||||||
@ -403,6 +406,7 @@ EX void initgame() {
|
|||||||
if(vid.use_smart_range == 2) vid.use_smart_range = 1;
|
if(vid.use_smart_range == 2) vid.use_smart_range = 1;
|
||||||
}
|
}
|
||||||
if(!allowIncreasedSight()) vid.use_smart_range = 0;
|
if(!allowIncreasedSight()) vid.use_smart_range = 0;
|
||||||
|
callhooks(hooks_post_initgame);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool havesave = true;
|
bool havesave = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user