diff options
author | Bardur Arantsson <bardur@scientician.net> | 2010-01-08 22:53:09 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2010-01-08 23:46:24 +0100 |
commit | cb01def7b71e64136ec58ad2876c8e2ed70ac008 (patch) | |
tree | a7df561f2995b57ff4ca1977dbb920d1efa4bd99 | |
parent | 2b5ab5e1ff1cf0c97b81850f424b507e8291c7c2 (diff) |
Import fix from CVS: Fix princess room allocation.
-rw-r--r-- | changes.txt | 1 | ||||
-rw-r--r-- | src/generate.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/changes.txt b/changes.txt index dcfc095d..b125df1a 100644 --- a/changes.txt +++ b/changes.txt @@ -11,6 +11,7 @@ T.o.M.E 2.3.6 - Fix for loading/saving on Linux distribution using Fortify. - Fix for module directory paths. - Fix miscellaneous problems on 64-bit platforms. +- Princess room should now always be generated. 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; |