From 667acd0e312301ad613b6a71f843c51d2062aee6 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Wed, 5 Oct 2016 18:45:08 +0200 Subject: Move d_info into GameEditData --- src/q_thrain.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/q_thrain.cc') diff --git a/src/q_thrain.cc b/src/q_thrain.cc index b7eb0756..2ec46cda 100644 --- a/src/q_thrain.cc +++ b/src/q_thrain.cc @@ -3,6 +3,7 @@ #include "cave.hpp" #include "cave_type.hpp" #include "dungeon_info_type.hpp" +#include "game.hpp" #include "generate.hpp" #include "hook_build_room1_in.hpp" #include "hook_move_in.hpp" @@ -238,6 +239,8 @@ static bool_ quest_thrain_turn_hook(void *, void *, void *) bool_ quest_thrain_init_hook() { + auto const &d_info = game->edit_data.d_info; + if (!cquest.data[0]) { cquest.data[0] = rand_range(d_info[DUNGEON_DOL_GULDUR].mindepth + 1, d_info[DUNGEON_DOL_GULDUR].maxdepth - 1); -- cgit v1.2.3