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:49:37 +0200 |
commit | 0c2f30b56c221a826ba64f0ec864c29d0f717644 (patch) | |
tree | a7b38e7b9cf9a06aacd56ec8a7177d44d001c1df /src/wild.cc | |
parent | 5ddcbbf1cdce68e565376819efedd519892512ad (diff) |
Move r_info into GameEditData
Diffstat (limited to 'src/wild.cc')
-rw-r--r-- | src/wild.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/wild.cc b/src/wild.cc index 5627629a..101e06f5 100644 --- a/src/wild.cc +++ b/src/wild.cc @@ -1002,10 +1002,11 @@ static void town_borders(int qy, int qx) static bool_ create_townpeople_hook(int r_idx) { - monster_race *r_ptr = &r_info[r_idx]; + auto const &r_info = game->edit_data.r_info; - if (r_ptr->d_char == 't') return TRUE; - else return FALSE; + auto r_ptr = &r_info[r_idx]; + + return (r_ptr->d_char == 't'); } |