From 4d4cc1f7c1f46cdc82ab349e53a7bc71ac403c5b Mon Sep 17 00:00:00 2001 From: Darshan Shaligram Date: Fri, 8 Jan 2010 19:11:55 +0530 Subject: Fix shim to undo negative transform durations (workaround for MarvinPA's permanent hog form). --- crawl-ref/source/main.cc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'crawl-ref') diff --git a/crawl-ref/source/main.cc b/crawl-ref/source/main.cc index 31f7b755af..71b0c387fb 100644 --- a/crawl-ref/source/main.cc +++ b/crawl-ref/source/main.cc @@ -2280,12 +2280,14 @@ 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 + if (TAG_MAJOR_VERSION == 15) + { + // FIXME: The TAG_MAJOR check 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; + } // Vampire bat transformations are permanent (until ended). if (you.species != SP_VAMPIRE || !player_in_bat_form() -- cgit v1.2.3-54-g00ecf