diff options
author | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2010-01-08 19:11:55 +0530 |
---|---|---|
committer | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2010-01-08 19:12:41 +0530 |
commit | 4d4cc1f7c1f46cdc82ab349e53a7bc71ac403c5b (patch) | |
tree | c5d7b86b72a22ba0cd804e254f3daaf54c215207 /crawl-ref/source/main.cc | |
parent | 60e491cc65a0714b21cd7f71d8eae2b911cd6669 (diff) | |
download | crawl-ref-4d4cc1f7c1f46cdc82ab349e53a7bc71ac403c5b.tar.gz crawl-ref-4d4cc1f7c1f46cdc82ab349e53a7bc71ac403c5b.zip |
Fix shim to undo negative transform durations (workaround for MarvinPA's permanent hog form).
Diffstat (limited to 'crawl-ref/source/main.cc')
-rw-r--r-- | crawl-ref/source/main.cc | 14 |
1 files changed, 8 insertions, 6 deletions
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() |