From 443ff1cd181d260d562a35bffc60d61179ce1268 Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Thu, 7 Jan 2010 22:19:00 +0100 Subject: A kludge to salvage Marvin's CDO perma-pig game. Please revert it soon! --- crawl-ref/source/main.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'crawl-ref/source/main.cc') 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) -- cgit v1.2.3-54-g00ecf