src/town_cmd.cpp
changeset 7480 1ae973d5f341
parent 7413 a590f7f0edb3
child 7482 28c50365f9b3
equal deleted inserted replaced
7479:2bc7aacf47eb 7480:1ae973d5f341
   704 
   704 
   705 				if (CHANCE16I(1, 16, r)) {
   705 				if (CHANCE16I(1, 16, r)) {
   706 					res = DoCommand(tile, slope, 0, DC_EXEC | DC_AUTO | DC_NO_WATER,
   706 					res = DoCommand(tile, slope, 0, DC_EXEC | DC_AUTO | DC_NO_WATER,
   707 					                      CMD_TERRAFORM_LAND);
   707 					                      CMD_TERRAFORM_LAND);
   708 				} else {
   708 				} else {
       
   709 					/* Note: Do not replace " ^ 0xF" with ComplementSlope(). The slope might be steep. */
   709 					res = DoCommand(tile, slope ^ 0xF, 1, DC_EXEC | DC_AUTO | DC_NO_WATER,
   710 					res = DoCommand(tile, slope ^ 0xF, 1, DC_EXEC | DC_AUTO | DC_NO_WATER,
   710 					                      CMD_TERRAFORM_LAND);
   711 					                      CMD_TERRAFORM_LAND);
   711 				}
   712 				}
   712 				if (CmdFailed(res) && CHANCE16I(1, 3, r)) {
   713 				if (CmdFailed(res) && CHANCE16I(1, 3, r)) {
   713 					/* We can consider building on the slope, though. */
   714 					/* We can consider building on the slope, though. */