Merge branch 'master' into jgrpp (SLV_U64_TICK_COUNTER)

# Conflicts:
#	src/date.cpp
#	src/date_func.h
#	src/newgrf.cpp
#	src/newgrf_animation_base.h
#	src/saveload/gamelog_sl.cpp
#	src/saveload/misc_sl.cpp
#	src/saveload/saveload.h
#	src/stdafx.h
This commit is contained in:
Jonathan G Rennison
2022-10-03 19:31:18 +01:00
15 changed files with 28 additions and 20 deletions

View File

@@ -914,7 +914,7 @@ static void TileLoop_Trees(TileIndex tile)
/* _tick_counter is incremented by 256 between each call, so ignore lower 8 bits.
* Also, we add tile % 31 to spread the updates evenly over the map,
* where 31 is just some prime number that looks ok. */
uint32 cycle = (uint32)tile % 31 + (_tick_counter >> 8);
uint32 cycle = (uint32)((tile % 31) + (_tick_counter >> 8));
/* Handle growth of grass (under trees/on MP_TREES tiles) at every 8th processings, like it's done for grass on MP_CLEAR tiles. */
if ((cycle & 7) == 7 && GetTreeGround(tile) == TREE_GROUND_GRASS) {