summaryrefslogtreecommitdiff
path: root/src/traps.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-10-05 18:45:08 +0200
committerBardur Arantsson <bardur@scientician.net>2016-10-05 18:45:08 +0200
commit667acd0e312301ad613b6a71f843c51d2062aee6 (patch)
tree5e93eef312d1c8a049161f040859ed2d1a0be850 /src/traps.cc
parent4b179786d73cde338e97503d036baea9015f655d (diff)
Move d_info into GameEditData
Diffstat (limited to 'src/traps.cc')
-rw-r--r--src/traps.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/traps.cc b/src/traps.cc
index 5ba66cbd..067934b9 100644
--- a/src/traps.cc
+++ b/src/traps.cc
@@ -19,6 +19,7 @@
#include "feature_flag.hpp"
#include "feature_type.hpp"
#include "files.hpp"
+#include "game.hpp"
#include "gods.hpp"
#include "monster2.hpp"
#include "monster_race.hpp"
@@ -1934,12 +1935,14 @@ void player_activate_door_trap(s16b y, s16b x)
*/
void place_trap(int y, int x)
{
+ auto const &d_info = game->edit_data.d_info;
+
s16b trap;
trap_type *t_ptr;
int cnt;
u32b flags;
cave_type *c_ptr = &cave[y][x];
- dungeon_info_type *d_ptr = &d_info[dungeon_type];
+ auto d_ptr = &d_info[dungeon_type];
/* No traps in town or on first level */
if (dun_level <= 1) return;