summaryrefslogtreecommitdiff
path: root/town_cmd.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-01-26 18:36:14 +0000
committerDarkvater <Darkvater@openttd.org>2006-01-26 18:36:14 +0000
commit7d17583a29878b4e911b769f473be11050c1e61b (patch)
tree0fed10ab2915f5e31fa55804caf2c2bcfdef1bcd /town_cmd.c
parente8e7794c97f6a4f0eec30ed8fa339fb7cea5fab6 (diff)
downloadopenttd-7d17583a29878b4e911b769f473be11050c1e61b.tar.xz
(svn r3445) - Fix: [ 1415379 ] Enhance documentation of lift destination
- Fix: wrong documentation of trees (Tron)
Diffstat (limited to 'town_cmd.c')
-rw-r--r--town_cmd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/town_cmd.c b/town_cmd.c
index fe983eea7..77ac02b9a 100644
--- a/town_cmd.c
+++ b/town_cmd.c
@@ -174,6 +174,10 @@ static void AnimateTile_Town(TileIndex tile)
_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);