Fix grass growth mistake

Nibbles are only 4 bits not 8
This commit is contained in:
duncanspumpkin 2016-04-11 20:04:03 +01:00
parent 2090c4aad2
commit be8c84f1c1
1 changed files with 1 additions and 1 deletions

View File

@ -4285,7 +4285,7 @@ static void map_update_grass_length(int x, int y, rct_map_element *mapElement)
// Grow grass
// Check interim grass lengths
uint8 lengthNibble = (mapElement->properties.surface.grass_length & 0xF0) >> 8;
uint8 lengthNibble = (mapElement->properties.surface.grass_length & 0xF0) >> 4;
if (lengthNibble < 0xF) {
mapElement->properties.surface.grass_length += 0x10;
} else {