From 5fd8034bab1bbd5d4480507b076fb7b67bef0299 Mon Sep 17 00:00:00 2001 From: dolorous Date: Tue, 28 Apr 2009 14:14:43 +0000 Subject: Add minor cosmetic fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9700 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/dungeon.cc | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'crawl-ref/source/dungeon.cc') diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc index 323cf704c3..67a6f539db 100644 --- a/crawl-ref/source/dungeon.cc +++ b/crawl-ref/source/dungeon.cc @@ -1018,9 +1018,9 @@ static void _build_layout_skeleton(int level_number, int level_type, static int _num_items_wanted(int level_number) { if (level_number > 5 && one_chance_in(500 - 5 * level_number)) - return 10 + random2avg( 90, 2 ); // rich level! + return (10 + random2avg(90, 2)); // rich level! else - return 3 + roll_dice( 3, 11 ); + return (3 + roll_dice(3, 11)); } @@ -1051,14 +1051,14 @@ static void _fixup_walls() // If part of vaults -> walls depend on level. // If part of crypt -> all walls stone. - if (player_in_branch( BRANCH_DIS ) - || player_in_branch( BRANCH_VAULTS ) - || player_in_branch( BRANCH_CRYPT )) + if (player_in_branch(BRANCH_DIS) + || player_in_branch(BRANCH_VAULTS) + || player_in_branch(BRANCH_CRYPT)) { // Always the case with Dis {dlb} dungeon_feature_type vault_wall = DNGN_METAL_WALL; - if (player_in_branch( BRANCH_VAULTS )) + if (player_in_branch(BRANCH_VAULTS)) { vault_wall = DNGN_ROCK_WALL; const int bdepth = player_branch_depth(); @@ -1072,10 +1072,8 @@ static void _fixup_walls() if (bdepth > 6 && one_chance_in(10)) vault_wall = DNGN_GREEN_CRYSTAL_WALL; } - else if (player_in_branch( BRANCH_CRYPT )) - { + else if (player_in_branch(BRANCH_CRYPT)) vault_wall = DNGN_STONE_WALL; - } _replace_area(0,0,GXM-1,GYM-1,DNGN_ROCK_WALL,vault_wall,MMT_NO_WALL); } -- cgit v1.2.3-54-g00ecf