Age | Commit message (Collapse) | Author |
|
|
|
This means that random tree generation density is higher on small maps and lower on large maps. This difference is enough to make the Lumber Mill impractical to use on large maps.
This change skips ticks on maps smaller than 256x256 and increases iterations or shortens the interval on maps larger than 256x256.
|
|
Basically, modal windows had their own thread-locking for what
drawing was possible. This is a bit nonsense now we have a
game-thread. And it makes much more sense to do things like
NewGRFScan and GenerateWorld in the game-thread, and not in a
thread next to the game-thread.
This commit changes that: it removes the threads for NewGRFScan
and GenerateWorld, and just runs the code in the game-thread.
On regular intervals it allows the draw-thread to do a tick,
which gives a much smoother look and feel.
It does slow down NewGRFScan and GenerateWorld ever so slightly
as it spends more time on drawing. But the slowdown is not
measureable on my machines (with 700+ NewGRFs / 4kx4k map and
a Debug build).
Running without a game-thread means NewGRFScan and GenerateWorld
are now blocking.
|
|
|
|
* Fix: Missing or needed spaces
* Codechange: Remove space
* Codechange: Remove space
* Codechange: More missing spaces
* Codechange: Missing spaces
* Codechange: Remove space
* Codechange: Remove space
|
|
|
|
|
|
|
|
|
|
to spread
|
|
|
|
|
|
|
|
other TileArea commands. (HackaLittleBit)
|
|
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
|
|
|
|
|
|
|
|
enabled to a header file allowing compilers to inline that check
|
|
|
|
|
|
unsupported tile types.
|
|
|
|
related variables
|
|
functions use int z as well
|
|
|
|
TILE_HEIGHT for the snow line code
|
|
use it
|
|
functions if they return the Z in pixels (like TilePixelHeight)
|
|
|
|
trees at the scenario editor.
|
|
generation progress bar.
|
|
|
|
snowline.
|
|
|
|
|
|
|
|
|
|
missed :)
|
|
logical place and with a more descriptive name
|
|
VARDEF and put them in a more logical location
|
|
desert or rain forest trees outside of the rain forest area. This to prevent people from thinking planting rain forest trees makes the rain forest bigger and thus adds more place to build a lumber mill.
|
|
|
|
|
|
wrapper functions
|
|
if a header require a header make it include that header
|
|
caused an assert
|
|
of snow on the tile changed
|
|
trees, desert, rocky areas or leveling land
|
|
it's covered by snow, this allows rocky tiles under snow if you have a variable snowline
|