diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:14 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:14 +0200 |
commit | f035201f330a3b1f50a2041ea9ad3f854f7d4e00 (patch) | |
tree | 7ef58d3a83ec4b50a0fe469a704773e5e1e77606 /src/randart.cc | |
parent | 7f147b21e23662c89bd28479ea67ee7c6a94fc0c (diff) |
Move all options to a struct instead of using globals
Diffstat (limited to 'src/randart.cc')
-rw-r--r-- | src/randart.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/randart.cc b/src/randart.cc index e22f1c93..f7ea95f3 100644 --- a/src/randart.cc +++ b/src/randart.cc @@ -341,7 +341,10 @@ bool_ create_artifact(object_type *o_ptr, bool_ a_scroll, bool_ get_name) TR_IGNORE_COLD; total_flags = flag_cost(o_ptr, o_ptr->pval); - if (cheat_peek) msg_format("%ld", total_flags); + if (options->cheat_peek) + { + msg_format("%ld", total_flags); + } if (a_cursed) curse_artifact(o_ptr); |