From cb01def7b71e64136ec58ad2876c8e2ed70ac008 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Fri, 8 Jan 2010 22:53:09 +0100 Subject: Import fix from CVS: Fix princess room allocation. --- src/generate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/generate.c') diff --git a/src/generate.c b/src/generate.c index b00dcec4..d027cf4e 100644 --- a/src/generate.c +++ b/src/generate.c @@ -1977,7 +1977,7 @@ bool room_alloc(int width, int height, bool crowded, int by0, int bx0, int *cx, for (ebx = bx0 + temp; bx0 > 0 && ebx > dun->col_rooms; bx0--, ebx--); - if (ebx >= dun->col_rooms) return (FALSE); + if (ebx > dun->col_rooms) return (FALSE); /* Total number along height */ temp = ((height - 1) / BLOCK_HGT) + 1; -- cgit v1.2.3