summaryrefslogtreecommitdiff
path: root/src/clear_cmd.cpp
AgeCommit message (Collapse)Author
2021-03-10Add: make modal windows update more smoothPatric Stout
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.
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-01-09Change: Desert tiles are now half-desert if a neighboured tile is non-desert ↵Andy
or sea/coast. (patch by frosch123) #4754 (#7015)
2016-10-02(svn r27657) -Change: Replace another occurence of the ancient tilehash ↵frosch
function with the newer one. This time to make rough land appear more random.
2015-03-20(svn r27200) -Feature/Fix [FS#6260]: [NewGRF] Add Misc. GRF Feature Flag 6 ↵frosch
to enable the second rocky tile set.
2015-01-10(svn r27117) -Fix/Feature: Make use of both rocky tile sets from the base ↵frosch
graphics.
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2013-10-12(svn r25852) -Codechange: Merge GetFenceXX/SetFenceXX into one common ↵zuu
GetFonce/SetFence for all directions that take an extra direction parameter (cirdan, LordAro)
2013-10-12(svn r25851) -Codechange: Avoid recalculations in DrawClearLandFence ↵zuu
(cirdan, LordAro)
2013-10-12(svn r25849) -Codechange: Introduce IsTileFlat to not compute full slope ↵zuu
information for situations when we only want to know if a tile is flat or not (cirdan, LordAro)
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium
2012-01-03(svn r23724) -Codechange: split of the check to see if ambient sounds are ↵yexo
enabled to a header file allowing compilers to inline that check
2011-11-08(svn r23168) -Feature [FS#1824]: always draw fences around field tilesyexo
2011-11-08(svn r23160) -Fix: wrong comments in a lot of TileTypeProcs definitionsyexo
2011-11-04(svn r23114) -Feature: [NewGRF] Ambient sound effect callback.michi_cc
2011-11-04(svn r23107) -Codechange: let GetSlopePixelZ and TerraformTile tile type ↵rubidium
functions use int z as well
2011-11-04(svn r23106) -Codechange: pass int* to GetTileSlope and friendsrubidium
2011-11-04(svn r23102) -Codechange: remove the remaining pointless multiplications by ↵rubidium
TILE_HEIGHT
2011-11-04(svn r23096) -Codechange: remove useless divisions and multiplications by ↵rubidium
TILE_HEIGHT for the snow line code
2011-11-04(svn r23091) -Codechange: rename some Get*Z functions to Get*PixelZ ↵rubidium
functions if they return the Z in pixels (like TilePixelHeight)
2011-11-03(svn r23084) -Codechange: get rid of a redundant variablerubidium
2011-02-07(svn r22019) -Codechange: s/functions.h/clear_func.h/rubidium
2011-01-22(svn r21890) -Cleanup: remove some unneeded includesrubidium
2010-07-19(svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be ↵rubidium
missed :)
2010-07-19(svn r20187) -Codechange: move _tileh_to_sprite into a function in a more ↵rubidium
logical place and with a more descriptive name
2010-05-08(svn r19768) -Fix: half-desert tiles would never revert back to clear tilessmatz
2010-01-29(svn r18945) -Codechange: typoyexo
2010-01-18(svn r18856) -Codechange: do not call GetSlopeZInCorner() when there's no ↵smatz
fence to draw
2010-01-15(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, ↵rubidium
if a header require a header make it include that header
2010-01-04(svn r18728) -Fix: don't mark all tiles dirty in the artic tileloopyexo
2010-01-04(svn r18719) -Feature: don't delete the rough/rocky status of a tile when ↵yexo
it's covered by snow, this allows rocky tiles under snow if you have a variable snowline
2010-01-03(svn r18702) -Fix [FS#3467]: Enable DrawGroundSpriteAt() to deal with ↵frosch
foundations as DrawGroundSprite() does, and use this for drawing one-way-road-signs and clear-land-fences.
2009-12-30(svn r18670) -Fix [FS#3455]: Update all tiles when snowline height changes ↵alberth
in larger steps than one tile.
2009-11-07(svn r18005) -Codechange: Convert the Prices struct into an array and an enum.frosch
2009-10-04(svn r17693) -Cleanup: remove some unneeded includesrubidium
2009-09-20(svn r17596) -Codechange: constify some tablessmatz
2009-09-07(svn r17455) -Codechange: use sprite names instead of magic numbers in ↵yexo
table/clear_land.h and change some names
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-08-05(svn r17075) -Codechange: rename ~750 strings to be more uniform with their ↵rubidium
relatives
2009-06-27(svn r16673) -Codechange: rename GetProducedCargo() to AddProducedCargo() ↵smatz
and change its behaviour accordingly
2009-06-25(svn r16660) -Codechange: get rid of more dummy tile_type_procssmatz
2009-06-25(svn r16659) -Codechange: rename GetAcceptedCargo() to AddAcceptedCargo() ↵smatz
and change its behaviour accordingly -Codechange: remove dummy GetAcceptedCargo_*() handlers
2009-06-10(svn r16549) -Codechange: use bool in TileLoopClearHelpersmatz
2009-04-21(svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had ↵rubidium
this ID' from 'some' strings and replace the string name with something more sensible.
2009-02-09(svn r15434) -Codechange: bit of type safety for the DC_xxx flags.rubidium
2009-01-31(svn r15299) -Cleanup: remove many redundant includessmatz
2009-01-21(svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map.Yexo