From 6d0546ed897f598699dcaa142ab6d79d8f5af020 Mon Sep 17 00:00:00 2001 From: Jude Brown Date: Sat, 28 Nov 2009 14:39:18 +1000 Subject: Fix reversed logic in is_damaging_cloud (bug #80). Was returning you.res_rotting() instead of !you.res_rotting(), meaning that you don't get a prompt for entering miasma clouds when you don't have rotting resistance, and that you do get a prompt when you do. --- crawl-ref/source/cloud.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref') diff --git a/crawl-ref/source/cloud.cc b/crawl-ref/source/cloud.cc index 3567723166..69a4e185fa 100644 --- a/crawl-ref/source/cloud.cc +++ b/crawl-ref/source/cloud.cc @@ -813,7 +813,7 @@ bool is_damaging_cloud(cloud_type type, bool temp) case CLOUD_STEAM: return (player_res_steam(false, temp) <= 0); case CLOUD_MIASMA: - return (you.res_rotting()); + return (!you.res_rotting()); case CLOUD_MUTAGENIC: return (you.can_mutate()); -- cgit v1.2.3-54-g00ecf