diff options
author | Neil Moore <neil@s-z.org> | 2014-07-20 23:26:32 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-07-20 23:39:04 -0400 |
commit | 63bc4b8c3764250f17a47085a1798413fdf7d587 (patch) | |
tree | f211134f38741d77a396e3c9219d12c123b82dc1 /crawl-ref/source/mapmark.h | |
parent | 035fa3e61758175e9a971d315aba5141a682ac67 (diff) | |
download | crawl-ref-63bc4b8c3764250f17a47085a1798413fdf7d587.tar.gz crawl-ref-63bc4b8c3764250f17a47085a1798413fdf7d587.zip |
Save old colour in terrain-change markers (#8806)
It is still possible to lose the colour if the cell is permanently
reverted to its original type: for example, using Tomb on coloured
floor then digging out.
Diffstat (limited to 'crawl-ref/source/mapmark.h')
-rw-r--r-- | crawl-ref/source/mapmark.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/mapmark.h b/crawl-ref/source/mapmark.h index 4632b4cef2..d02d0718c8 100644 --- a/crawl-ref/source/mapmark.h +++ b/crawl-ref/source/mapmark.h @@ -196,7 +196,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 = 0); + int mnum = 0, int oldcol = BLACK); void write (writer &) const; void read (reader &); @@ -211,6 +211,7 @@ public: dungeon_feature_type old_feature; dungeon_feature_type new_feature; terrain_change_type change_type; + int colour; }; class map_cloud_spreader_marker : public map_marker |