From 4b13d7f55a784325dfe4e4ae4b84f4c76c0aa246 Mon Sep 17 00:00:00 2001 From: mogami Date: Tue, 26 Aug 2003 22:13:48 +0000 Subject: [PATCH] =?utf8?q?=E3=83=95=E3=83=AD=E3=82=A2=E3=81=AE=E4=B8=80?= =?utf8?q?=E7=95=AA=E4=B8=8B=E3=81=AE1=E3=83=96=E3=83=AD=E3=83=83=E3=82=AF?= =?utf8?q?=E5=88=86=E3=81=AB=E9=83=A8=E5=B1=8B=E3=81=8C=E9=85=8D=E7=BD=AE?= =?utf8?q?=E3=81=95=E3=82=8C=E3=81=AA=E3=81=8B=E3=81=A3=E3=81=9F=E3=83=90?= =?utf8?q?=E3=82=B0=E4=BF=AE=E6=AD=A3=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/rooms.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/rooms.c b/src/rooms.c index 4377a5ee6..43c47ce48 100644 --- a/src/rooms.c +++ b/src/rooms.c @@ -282,9 +282,8 @@ static bool find_space(int *y, int *x, int height, int width) filled = FALSE; /* Pick a top left block at random */ - block_y = randint0(dun->row_rooms - blocks_high); - block_x = randint0(dun->col_rooms - blocks_wide); - + block_y = randint0(dun->row_rooms - blocks_high + 1); + block_x = randint0(dun->col_rooms - blocks_wide + 1); /* Itty-bitty rooms can shift about within their rectangle */ if (blocks_wide < 3) -- 2.11.0