|
From: <gi...@cr...> - 2011-08-31 03:44:15
|
via a93dd5f167e19db6e49a76b5cb6ea760081caa5d (commit)
from cd361de40028dd9a5753028bb8f4c82e192d149b (commit)
-----------------------------------------------------------------------
commit a93dd5f167e19db6e49a76b5cb6ea760081caa5d
Author: Adam Borowski <kil...@an...>
Date: Wed Aug 31 05:39:32 2011 +0200
Fix a missing #ifdef for old order of enums.
I accidentally forgot about this part of the diff; it made undiscovered traps
leaked by trying to travel.
-----------------------------------------------------------------------
Summary of changes:
crawl-ref/source/travel.cc | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc
index 720445e..6886c6b 100644
--- a/crawl-ref/source/travel.cc
+++ b/crawl-ref/source/travel.cc
@@ -542,7 +542,12 @@ void initialise_travel()
{
for (int feat = DNGN_FLOOR_MIN; feat < NUM_FEATURES; feat++)
{
+#if TAG_MAJOR_VERSION == 32
+ if ((feat >= DNGN_TRAP_MECHANICAL && feat <= DNGN_TRAP_NATURAL)
+ || feat == DNGN_TRAP_WEB)
+#else
if (feat >= DNGN_TRAP_MECHANICAL && feat <= DNGN_TRAP_WEB)
+#endif
continue;
traversable_terrain[feat] = TRAVERSABLE;
--
Dungeon Crawl Stone Soup
|