diff --git a/src/lvl_script_commands.c b/src/lvl_script_commands.c index 3ab6696a3c..e70938aa3d 100644 --- a/src/lvl_script_commands.c +++ b/src/lvl_script_commands.c @@ -12,45 +12,45 @@ */ /******************************************************************************/ #include "pre_inc.h" -#include "lvl_script_commands.h" - -#include "lvl_script_conditions.h" -#include "lvl_script_lib.h" - #include #include -#include "dungeon_data.h" -#include "thing_data.h" -#include "player_instances.h" -#include "keeperfx.hpp" -#include "custom_sprites.h" -#include "gui_soundmsgs.h" +#include "bflib_memory.h" +#include "bflib_sound.h" +#include "config_effects.h" #include "config_magic.h" +#include "config_players.h" +#include "config_powerhands.h" #include "config_settings.h" -#include "config_effects.h" +#include "config_spritecolors.h" #include "config_trapdoor.h" -#include "config_powerhands.h" -#include "config_players.h" -#include "frontmenu_ingame_map.h" -#include "thing_effects.h" -#include "thing_physics.h" -#include "thing_navigate.h" #include "console_cmd.h" -#include "creature_states_pray.h" -#include "creature_states_mood.h" -#include "room_util.h" #include "creature_instances.h" -#include "power_hand.h" -#include "power_specials.h" #include "creature_states.h" +#include "creature_states_mood.h" +#include "creature_states_pray.h" +#include "custom_sprites.h" +#include "dungeon_data.h" +#include "frontmenu_ingame_map.h" +#include "gui_soundmsgs.h" +#include "keeperfx.hpp" +#include "lvl_script_commands.h" +#include "lvl_script_conditions.h" +#include "lvl_script_lib.h" #include "map_blocks.h" -#include "bflib_memory.h" -#include "post_inc.h" #include "music_player.h" -#include "bflib_sound.h" -#include "config_spritecolors.h" +#include "player_instances.h" +#include "player_utils.h" +#include "power_hand.h" +#include "power_specials.h" +#include "room_util.h" #include "sounds.h" +#include "thing_data.h" +#include "thing_effects.h" +#include "thing_navigate.h" +#include "thing_physics.h" + +#include "post_inc.h" #ifdef __cplusplus extern "C" { @@ -6032,6 +6032,7 @@ static void computer_player_process(struct ScriptContext* context) script_support_setup_player_as_computer_keeper(i, model); get_dungeon(i)->turns_between_entrance_generation = game.generate_speed; init_creature_states_for_player(i); + post_init_player(get_player(i)); } else { diff --git a/src/player_utils.h b/src/player_utils.h index 04d78ea30a..70df17b3e3 100644 --- a/src/player_utils.h +++ b/src/player_utils.h @@ -59,6 +59,7 @@ TbBool player_sell_door_at_subtile(PlayerNumber plyr_idx, MapSubtlCoord stl_x, M void init_players(void); void init_player(struct PlayerInfo *player, short no_explore); void post_init_players(void); +void post_init_player(struct PlayerInfo* player); void init_players_local_game(void); void init_keeper_map_exploration_by_terrain(struct PlayerInfo *player); void init_keeper_map_exploration_by_creatures(struct PlayerInfo *player);