From 9dde1287aa5bbcb0dfdcba17f0e8ba2d7db67881 Mon Sep 17 00:00:00 2001 From: truebrain Date: Thu, 1 Dec 2011 12:04:22 +0000 Subject: (svn r23387) -Fix: move ai.script_max_opcode_till_suspend to script.script_max_opcode_till_suspend --- src/settings_type.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/settings_type.h') diff --git a/src/settings_type.h b/src/settings_type.h index d23011eb7..b1d622844 100644 --- a/src/settings_type.h +++ b/src/settings_type.h @@ -257,7 +257,11 @@ struct AISettings { bool ai_disable_veh_roadveh; ///< disable types for AI bool ai_disable_veh_aircraft; ///< disable types for AI bool ai_disable_veh_ship; ///< disable types for AI - uint32 ai_max_opcode_till_suspend; ///< max opcode calls till AI will suspend +}; + +/** Settings related to scripts. */ +struct ScriptSettings { + uint32 script_max_opcode_till_suspend; ///< max opcode calls till scripts will suspend }; /** Settings related to the old pathfinder. */ @@ -447,6 +451,7 @@ struct GameSettings { GameCreationSettings game_creation; ///< settings used during the creation of a game (map) ConstructionSettings construction; ///< construction of things in-game AISettings ai; ///< what may the AI do? + ScriptSettings script; ///< settings for scripts class AIConfig *ai_config[MAX_COMPANIES]; ///< settings per company PathfinderSettings pf; ///< settings for all pathfinders OrderSettings order; ///< settings related to orders -- cgit v1.2.3-54-g00ecf