From 14d28e2628713bb0d5aba196092ef93e2ae5390d Mon Sep 17 00:00:00 2001 From: Darshan Shaligram Date: Thu, 7 Jan 2010 21:27:29 +0530 Subject: Fix bug in handling .des map validation failures (Eifeltrampel). snake_hunt would very rarely fail validation 25 times without vetoing the level, leaving Snake:$ without a rune. --- crawl-ref/source/maps.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crawl-ref/source/maps.cc b/crawl-ref/source/maps.cc index ef37d6c1b5..a41fc4ce88 100644 --- a/crawl-ref/source/maps.cc +++ b/crawl-ref/source/maps.cc @@ -125,9 +125,9 @@ static int write_vault(map_def &mdef, place, check_place); if (place.orient != MAP_NONE) - break; + return (place.orient); } - return (place.orient); + return (MAP_NONE); } static bool resolve_map_lua(map_def &map) -- cgit v1.2.3-54-g00ecf