summaryrefslogtreecommitdiff
path: root/src/wild.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:15 +0200
committerBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:15 +0200
commit05cdb1a997cba7748f0089cffa0a5885ca0b2c43 (patch)
treee3b0b3bb636e1e099eafe784eaeffdb147348b81 /src/wild.cc
parent5eec61dd05577623c1d5b9eed3a22d1352dcd990 (diff)
Move wilderness structure into Game
Diffstat (limited to 'src/wild.cc')
-rw-r--r--src/wild.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/wild.cc b/src/wild.cc
index 55a03087..78a29f56 100644
--- a/src/wild.cc
+++ b/src/wild.cc
@@ -12,6 +12,7 @@
#include "cave_type.hpp"
#include "feature_flag.hpp"
#include "feature_type.hpp"
+#include "game.hpp"
#include "hook_wild_gen_in.hpp"
#include "hooks.hpp"
#include "init1.hpp"
@@ -155,7 +156,7 @@ static void plasma_recursive(int x1, int y1, int x2, int y2,
*/
static int generate_area(int y, int x, bool_ border, bool_ corner)
{
- auto const &wilderness = *wilderness_ptr;
+ auto const &wilderness = game->wilderness;
int road, entrance;
int x1, y1;
int hack_floor = 0;
@@ -575,7 +576,7 @@ void wilderness_gen()
*/
void wilderness_gen_small()
{
- auto const &wilderness = *wilderness_ptr;
+ auto const &wilderness = game->wilderness;
int xstart = 0;
int ystart = 0;
@@ -645,7 +646,7 @@ void wilderness_gen_small()
/* Show a small radius of wilderness around the player */
void reveal_wilderness_around_player(int y, int x, int h, int w)
{
- auto &wilderness = *wilderness_ptr;
+ auto &wilderness = game->wilderness;
/* Circle or square ? */
if (h == 0)