Changeset - r407:7c5b4808b145
[Not reviewed]
master
0 1 0
tron - 20 years ago 2004-11-14 17:16:26
tron@openttd.org
(svn r604) -Fix: [ 999669 ] Wrong trees (toyland's) in sub-tropical landscape style
Tree generation code sometimes set the non-existent growth state 7
This could also become manifest in snow covered trees below the swnow line in arctic climate and similar effects
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
tree_cmd.c
Show inline comments
 
@@ -36,7 +36,7 @@ static void PlaceTree(uint tile, uint32 
 

	
 
	if (tree >= 0) {
 
		m5 = (byte)(r >> 16);
 
		if(m5==7) m5--;
 
		if ((m5 & 0x7) == 7) m5--; // there is no growth state 7
 

	
 
		_map5[tile] = m5 & 0x07;	// growth state;
 
		_map5[tile] |=  m5 & 0xC0;	// amount of trees
0 comments (0 inline, 0 general)