1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-28 11:00:34 +00:00

added hooks_post_initgame

This commit is contained in:
Zeno Rogue 2021-04-07 18:32:54 +02:00
parent a4f7bc1ee6
commit eaa2a45932

View File

@ -151,6 +151,9 @@ EX void welcomeMessage() {
/** \brief These hooks are called at the start of 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 */
EX void initgame() {
DEBBI(DF_INIT, ("initGame"));
@ -403,6 +406,7 @@ EX void initgame() {
if(vid.use_smart_range == 2) vid.use_smart_range = 1;
}
if(!allowIncreasedSight()) vid.use_smart_range = 0;
callhooks(hooks_post_initgame);
}
bool havesave = true;