changeset 2891 | db971f08e6d8 |
parent 2817 | 58dcead3f545 |
child 2951 | 2db3adee7736 |
child 9944 | 4f027626dbf6 |
--- a/town_cmd.c Thu Jan 26 17:43:31 2006 +0000 +++ b/town_cmd.c Thu Jan 26 18:36:14 2006 +0000 @@ -174,6 +174,10 @@ _m[tile].m1 |= 0x80; + /** Building has 6 floors, number 0 .. 6, where 1 is illegal. + * This is due to the fact that the first floor is, in the graphics, + * the height of 2 'normal' floors. + * Furthermore, there are 6 lift positions from floor N (incl) to floor N + 1 (excl) */ do { i = (Random() & 7) - 1; } while (i < 0 || i == 1 || i * 6 == old);