diff options
author | Manoj Srivastava <srivasta@debian.org> | 2020-05-23 00:33:19 -0700 |
---|---|---|
committer | Manoj Srivastava <srivasta@debian.org> | 2020-05-23 00:33:19 -0700 |
commit | d6b913d3ca2e84b75f3675fd6e9f5246c100cf27 (patch) | |
tree | 5fc28b7efc737bf2c79dc7d799e0a6013957fe11 /src/town_type.hpp | |
parent | c42f029316c0c004a795ca170bdb50644a800534 (diff) | |
parent | 73a0259be1d44fdb2ab34266ae0ff63f0d8f0b60 (diff) |
Merge branch 'master' into dgit/siddebian/2.4.0-ah-1archive/debian/2.4.0-ah-1
Diffstat (limited to 'src/town_type.hpp')
-rw-r--r-- | src/town_type.hpp | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/town_type.hpp b/src/town_type.hpp index f8458c60..0b903138 100644 --- a/src/town_type.hpp +++ b/src/town_type.hpp @@ -1,21 +1,25 @@ #pragma once #include "h-basic.h" +#include "seed.hpp" #include "store_type_fwd.hpp" +#include <vector> + /** * Town descriptor. */ struct town_type { - cptr name; - u32b seed; /* Seed for RNG */ - store_type *store; /* The stores [max_st_idx] */ - byte numstores; + cptr name = nullptr; + + seed_t seed = seed_t::system(); /* Seed for RNG */ + + std::vector<store_type> store; /* The stores [max_st_idx] */ + + byte flags = 0; /* Town flags */ - byte flags; /* Town flags */ - /* Left this for the sake of compatibility */ - bool_ stocked; /* Is the town actualy stocked ? */ + bool_ stocked = FALSE; /* Is the town actualy stocked ? */ - bool_ destroyed; /* Is the town destroyed? */ + bool_ destroyed = FALSE; /* Is the town destroyed? */ }; |