summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mapmark.h
diff options
context:
space:
mode:
authorDracoOmega <draco_omega@live.com>2013-04-08 17:49:39 -0230
committerDracoOmega <draco_omega@live.com>2013-05-26 18:58:14 -0230
commitcdd62056bea9c0f62234bf5dc24540f3785d4358 (patch)
tree96ea4d2c83d6c071043f1171b2c486b420a44def /crawl-ref/source/mapmark.h
parent86487b697a501cb5665c7fcfdd8e917d826518de (diff)
downloadcrawl-ref-cdd62056bea9c0f62234bf5dc24540f3785d4358.tar.gz
crawl-ref-cdd62056bea9c0f62234bf5dc24540f3785d4358.zip
Add routines for temporary terrain manipulation
Each terrain change specifies a desired feature, a duration (which may be INFINITE_DURATION), a terrain change type (used for reference and stacking at the moment), and optionally a source monster (if one is specified, the terrain change is undone upon the monster's death) A temporary terrain change will automatically revert to the original underlying feature when it times out, or the source monster is killed. There can only be one terrain change of a given type at a single location. A new change of the same type will overwrite the old one if it either changes the terrain to a different feature type than the old one, or has a greater duration than remains of the old one (this will change the associated source monster, if appropriate).
Diffstat (limited to 'crawl-ref/source/mapmark.h')
-rw-r--r--crawl-ref/source/mapmark.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mapmark.h b/crawl-ref/source/mapmark.h
index 751fcb9a74..289cc6ddbe 100644
--- a/crawl-ref/source/mapmark.h
+++ b/crawl-ref/source/mapmark.h
@@ -193,7 +193,7 @@ public:
dungeon_feature_type oldfeat = DNGN_FLOOR,
dungeon_feature_type newfeat = DNGN_FLOOR,
int dur = 0, terrain_change_type type = TERRAIN_CHANGE_GENERIC,
- int mnum = MONS_NO_MONSTER);
+ int mnum = 0);
void write (writer &) const;
void read (reader &);