diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-04 10:04:17 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-04 16:50:18 +0100 |
commit | 6f10cd2574eeb8a1417eff84718edd309287ac0d (patch) | |
tree | 69a45fe0e35cb559a3285b08697c96c230fc0c0f /crawl-ref/source/initfile.cc | |
parent | 9ad85435681ad82c7ef07d2083e40e525e2b0f55 (diff) | |
download | crawl-ref-6f10cd2574eeb8a1417eff84718edd309287ac0d.tar.gz crawl-ref-6f10cd2574eeb8a1417eff84718edd309287ac0d.zip |
Get rid of multiple-meaning "int object" in env.show.
env.show is now a class show_def that stores tagged
unions of type show_type. For the moment, there's also
env.show_los for use in LOS determination, but that
should become an array of boolean at some point.
This breaks save compatibility.
Tiles and console version build and appear to work
fine, but this kind of change is likely to have
some side-effects.
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r-- | crawl-ref/source/initfile.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index 63416e0fc6..dc9c95b21a 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -1091,8 +1091,11 @@ void game_options::add_feature_override(const std::string &text) for (int i = 0, size = feats.size(); i < size; ++i) { + if (feats[i] >= NUM_FEATURES) + continue; // TODO: handle other object types. feature_override fov; - fov.feat = feats[i]; + fov.object.cls = SH_FEATURE; + fov.object.feat = feats[i]; fov.override.symbol = read_symbol(iprops[0]); fov.override.magic_symbol = read_symbol(iprops[1]); |