From eaa2a459325caa0cc6fec38250909c7f14589b4e Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 7 Apr 2021 18:32:54 +0200 Subject: [PATCH] added hooks_post_initgame --- system.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/system.cpp b/system.cpp index 6612d1e2..e9894f35 100644 --- a/system.cpp +++ b/system.cpp @@ -151,6 +151,9 @@ EX void welcomeMessage() { /** \brief These hooks are called at the start of initgame. */ EX hookset hooks_initgame; +/** \brief These hooks are called at the end of initgame. */ +EX hookset 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;