summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/main.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-01-07 22:19:00 +0100
committerAdam Borowski <kilobyte@angband.pl>2010-01-07 22:19:00 +0100
commit443ff1cd181d260d562a35bffc60d61179ce1268 (patch)
treefcf8f49bfebbb770992abe915a978a0ccdbe3f09 /crawl-ref/source/main.cc
parentb4f11b1704b772a2d206ab58c6fc00ba61eb490c (diff)
downloadcrawl-ref-443ff1cd181d260d562a35bffc60d61179ce1268.tar.gz
crawl-ref-443ff1cd181d260d562a35bffc60d61179ce1268.zip
A kludge to salvage Marvin's CDO perma-pig game. Please revert it soon!
Diffstat (limited to 'crawl-ref/source/main.cc')
-rw-r--r--crawl-ref/source/main.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/main.cc b/crawl-ref/source/main.cc
index 63c750eb13..31f7b755af 100644
--- a/crawl-ref/source/main.cc
+++ b/crawl-ref/source/main.cc
@@ -2280,6 +2280,13 @@ static void _decrement_durations()
}
}
+#if (TAG_MAJOR_VERSION == 15)
+ // The TAG_MAJOR #define is merely bait to make sure someone deletes this
+ // check after the affected games are fixed.
+ if (you.duration[DUR_TRANSFORMATION] < 0)
+ you.duration[DUR_TRANSFORMATION] = 1);
+#endif
+
// Vampire bat transformations are permanent (until ended).
if (you.species != SP_VAMPIRE || !player_in_bat_form()
|| you.duration[DUR_TRANSFORMATION] <= 5 * BASELINE_DELAY)