mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-30 21:42:59 +00:00 
			
		
		
		
	added hooks_post_initgame
This commit is contained in:
		| @@ -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; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue