From b6484c07a27d0856140792f33397930f9e6e7689 Mon Sep 17 00:00:00 2001 From: dolorous Date: Tue, 7 Oct 2008 03:09:27 +0000 Subject: Fix flight type handling so that spectral things can at least always levitate again (since their class can), regardless of what actual type they are. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7169 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/ghost.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/ghost.cc') diff --git a/crawl-ref/source/ghost.cc b/crawl-ref/source/ghost.cc index 97bcca30a5..a2986add5c 100644 --- a/crawl-ref/source/ghost.cc +++ b/crawl-ref/source/ghost.cc @@ -198,8 +198,8 @@ void ghost_demon::init_random_demon() spellcaster = !one_chance_in(10); // Does demon fly? - fly = (one_chance_in(3)? FL_NONE : - one_chance_in(5)? FL_LEVITATE : FL_FLY); + fly = (one_chance_in(3) ? FL_NONE : + one_chance_in(5) ? FL_LEVITATE : FL_FLY); // hit dice: xl = 10 + roll_dice(2, 10); -- cgit v1.2.3-54-g00ecf