From 46bf2998e5a6df900667ccb4f9ab4856c146d7d8 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Thu, 5 Jun 2008 22:02:47 +0000 Subject: Fix 1984593: all monster being generated awake. Some modifications to the pathfind travel_cost function. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5491 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/dungeon.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/dungeon.cc') diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc index 1a86391623..d6d9dabdc2 100644 --- a/crawl-ref/source/dungeon.cc +++ b/crawl-ref/source/dungeon.cc @@ -2980,6 +2980,7 @@ static void _builder_monsters(int level_number, char level_type, int mon_wanted) for (int i = 0; i < mon_wanted; i++) { mgen_data mg; + mg.behaviour = BEH_SLEEP; mg.power = level_number; mg.flags |= MG_PERMIT_BANDS; mg.map_mask |= MMT_NO_MONS; @@ -2989,7 +2990,7 @@ static void _builder_monsters(int level_number, char level_type, int mon_wanted) _place_uniques(level_number, level_type); - if ( !player_in_branch(BRANCH_CRYPT) ) // no water creatures in the Crypt + if ( !player_in_branch(BRANCH_CRYPT) ) // No water creatures in the Crypt. _place_aquatic_monsters(level_number, level_type); else { @@ -4748,7 +4749,7 @@ static int _vault_grid( vault_placement &place, mgen_data::hostile_at( _random_evil_statue(), coord_def(vx, vy) )); } - // first, set base tile for grids {dlb}: + // First, set base tile for grids {dlb}: grd[vx][vy] = ((vgrid == -1) ? grd[vx][vy] : (vgrid == 'x') ? DNGN_ROCK_WALL : (vgrid == 'X') ? DNGN_PERMAROCK_WALL : -- cgit v1.2.3-54-g00ecf