Commit Graph

143 Commits (5199e19213bfad4c9cd145b2b606cc6ad4015244)

Author SHA1 Message Date
Jonathan G Rennison f34833f111 Merge branch 'improved_breakdowns' into jgrpp
# Conflicts:
#	src/vehiclelist.cpp
7 years ago
frosch a47fb85cd8 (svn r27893) -Codechange: Use fallthrough attribute. (LordAro) 7 years ago
Jonathan G Rennison 09291a3b74 Merge branch 'master' into jgrpp
# Conflicts:
#	src/blitter/32bpp_anim.cpp
#	src/rail_gui.cpp
#	src/saveload/saveload.cpp
#	src/train_cmd.cpp
#	src/vehicle_base.h
8 years ago
Jonathan G Rennison 224e927e0c Fix "remove all trees in scenario editor" being available in game. 9 years ago
patch-import 2e04f211df Import remove all trees in scenario editor patch.
http://www.tt-forums.net/viewtopic.php?f=33&t=49326

Update to current current version.
Use CMD_LANDSCAPE_CLEAR instead of CMD_CLEAR_AREA.
Whitespace, misc fixes.
9 years ago
patch-import c5f9d8b6de Import reduced tree patch
http://www.tt-forums.net/viewtopic.php?p=890778#p890778

Update to recent trunk, use extended savegame framework.
Add setting help text, tweak setting name.
Pre-calculate tree growth probabilities.
9 years ago
Jonathan G Rennison 3d40ca2db9 Merge branch 'master' into jgrpp 9 years ago
frosch 0d4b84f06b (svn r27406) -Doc: Use same start/end tile convention in CmdPlantTree as in other TileArea commands. (HackaLittleBit) 9 years ago
Jonathan G Rennison 2a4f196d34 Merge branch 'everest_treeline-sx' into jgrpp 9 years ago
patch-import 1796957258 Everest patch: Fix plant random trees planting cacti above the snowline.
Fix from HackaLittleBit
http://www.tt-forums.net/viewtopic.php?p=1156793#p1156793
9 years ago
Jonathan G Rennison c5de99c6b3 Fix off by one error in documentation comment for GetRandomTreeType. 9 years ago
Jonathan G Rennison 58780fb109 Merge branch 'everest_treeline-sx' into jgrpp 9 years ago
Jonathan G Rennison 381d11096f Bin no_trees_on_this_level, use exp. decay away from snow line.
Probability of placing an arctic tree is now an exponential decay
function of height distance from the snow line, instead of the previous
50% blocks.
This results in a more gradual thinning out of arctic trees in
each direction.
The algorithm is: p = exp(-3 * distance / range_setting),
using a rather crude approximation of the exponential function.

The no_trees_on_this_level setting is not really useful, and its
dual behaviour to disallow discrete height levels and turn on the
snow line behaviour is unintuitive.
Replace it with a simple on/off setting.
9 years ago
Jonathan G Rennison efe85200f0 Import Everest treeline patch 9 years ago
patch-import 536a95dfd0 Import combined Enhanced viewport: zoom out, overlays & tooltips (r53_27127) patch
https://www.tt-forums.net/viewtopic.php?f=33&t=53394
9 years ago
rubidium 2be4215f43 (svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values 10 years ago
frosch 336a93a9d8 (svn r24846) -Add: Advanced settings to disable certain sound effects. 12 years ago
michi_cc 07f32df363 (svn r24134) -Add: Configurable limits for tree planting. 12 years ago
rubidium d5eeab43b7 (svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files 13 years ago
yexo f884be58e5 (svn r23724) -Codechange: split of the check to see if ambient sounds are enabled to a header file allowing compilers to inline that check 13 years ago
yexo 0566a6cfda (svn r23168) -Feature [FS#1824]: always draw fences around field tiles 13 years ago
yexo 36e61e08b3 (svn r23160) -Fix: wrong comments in a lot of TileTypeProcs definitions 13 years ago
michi_cc 109d15410e (svn r23116) -Fix (r23114): Ambient sound effect callback was called for unsupported tile types. 13 years ago
michi_cc 84a103e112 (svn r23114) -Feature: [NewGRF] Ambient sound effect callback. 13 years ago
rubidium 0e2d2b2317 (svn r23108) -Codechange: more uint -> int / byte -> int conversions for Z related variables 13 years ago
rubidium fb9fb416a1 (svn r23107) -Codechange: let GetSlopePixelZ and TerraformTile tile type functions use int z as well 13 years ago
rubidium 70faeeaba9 (svn r23106) -Codechange: pass int* to GetTileSlope and friends 13 years ago
rubidium a70fdbcf2f (svn r23096) -Codechange: remove useless divisions and multiplications by TILE_HEIGHT for the snow line code 13 years ago
rubidium bcb93b3b75 (svn r23093) -Codechange: add a default NULL for the Z of GetTileSlope and use it 13 years ago
rubidium de980ef0f9 (svn r23091) -Codechange: rename some Get*Z functions to Get*PixelZ functions if they return the Z in pixels (like TilePixelHeight) 13 years ago
rubidium 3cb12ed89c (svn r22019) -Codechange: s/functions.h/clear_func.h/ 14 years ago
terkhen b956a3e847 (svn r20829) -Fix [FS#4094]: Place less trees at once when planting random trees at the scenario editor. 14 years ago
terkhen d97c7f9ce4 (svn r20828) -Add: Take into account tree group placement at the world generation progress bar. 14 years ago
terkhen 26b144e663 (svn r20827) -Codechange: Simplify code for placement of tree groups. 14 years ago
terkhen dc9053b900 (svn r20826) -Codechange: Simplify code for generating more trees above the snowline. 14 years ago
terkhen 4f8ebe9582 (svn r20825) -Codechange: Replace a few magic numbers by constants. 14 years ago
terkhen 04134c1e51 (svn r20289) -Codechange: Unify fall through coding style. 14 years ago
frosch 5b86c79fce (svn r20283) -Codechange: Unify start of doygen comments. 14 years ago
rubidium 8c85b4ce3d (svn r20281) -Codechange: unify case scope closure + break coding style 14 years ago
rubidium 9fd2afb147 (svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :) 14 years ago
rubidium 035d0ef16b (svn r20187) -Codechange: move _tileh_to_sprite into a function in a more logical place and with a more descriptive name 14 years ago
rubidium 4a2901eea4 (svn r20184) -Codechange: make _trees_tick_ctr and _disaster_delay not use VARDEF and put them in a more logical location 14 years ago
rubidium 789b9793e9 (svn r19644) -Fix [FS#3728]: don't allow building cacti outside of the 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. 14 years ago
frosch 39a888a0e2 (svn r19634) -Codechange: Use TREE_INVALID more consistently. 14 years ago
rubidium 7127338414 (svn r18872) -Codechange: introduce PaletteID and use it 15 years ago
rubidium f618acfb7d (svn r18866) -Codechange: remove the CmdFailed(ret)/CmdSucceeded(ret) wrapper functions 15 years ago
rubidium 9467b7c6d6 (svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header 15 years ago
yexo 39009cf139 (svn r18739) -Fix (r18719): building trees on snow with rocks underneed caused an assert 15 years ago
yexo f666760a72 (svn r18738) -Fix (r18719): when a tree died while there was snow the amount of snow on the tile changed 15 years ago
rubidium 906418347e (svn r18723) -Codechange: also simplify looping over an area when building trees, desert, rocky areas or leveling land 15 years ago