diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-10-05 18:45:08 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-10-05 18:45:08 +0200 |
commit | 667acd0e312301ad613b6a71f843c51d2062aee6 (patch) | |
tree | 5e93eef312d1c8a049161f040859ed2d1a0be850 /src/q_thrain.cc | |
parent | 4b179786d73cde338e97503d036baea9015f655d (diff) |
Move d_info into GameEditData
Diffstat (limited to 'src/q_thrain.cc')
-rw-r--r-- | src/q_thrain.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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); |