Commit Graph

287 Commits (jgrpp)

Author SHA1 Message Date
Jonathan G Rennison 46b1ea81e4 Add company rate limit for land area purchasing 6 years ago
Jonathan G Rennison 9e1e074c2b Update existing assertions to log tile information where suitable 6 years ago
Jonathan G Rennison 56bde8ce18 Add setting to allow placing all NewGRF objects under bridges 6 years ago
Jonathan G Rennison 56be293107 Merge branch 'master' into jgrpp
# Conflicts:
#	src/blitter/32bpp_anim.cpp
#	src/blitter/32bpp_anim.hpp
#	src/blitter/32bpp_anim_sse2.cpp
#	src/blitter/32bpp_base.cpp
#	src/blitter/32bpp_base.hpp
#	src/ground_vehicle.cpp
#	src/linkgraph/linkgraph_gui.h
#	src/main_gui.cpp
#	src/newgrf_house.cpp
#	src/newgrf_house.h
#	src/town_cmd.cpp
#	src/vehicle_base.h
#	src/viewport_gui.cppp
6 years ago
PeterN 4cebebcf68
Change: Add CargoTypes type for cargo masks. (#6790) 6 years ago
Jonathan G Rennison c83903ddb0 Merge branch 'master' into jgrpp 8 years ago
frosch d7ee0b6fee (svn r27656) -Fix [FS#6511]: When removing objects of bankrupt companies the tiles may revert to canal. In that case also check the ownership of the canal. 8 years ago
frosch 740534440e (svn r27656) -Fix [FS#6511]: When removing objects of bankrupt companies the tiles may revert to canal. In that case also check the ownership of the canal. 8 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 dc2b4f2498 (svn r26879) -Codechange: remove most MayHaveBridgeAbove calls since the data is now always accessible 10 years ago
rubidium 9daf7e749c (svn r26879) -Codechange: remove most MayHaveBridgeAbove calls since the data is now always accessible 10 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
rubidium 0463dbdc9e (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 3484660ab1 (svn r26240) -Codechange: Pass the GRFFile to GetErrorMessageFromLocationCallbackResult instead of the GRFID. 11 years ago
frosch 73c6565cf2 (svn r26240) -Codechange: Pass the GRFFile to GetErrorMessageFromLocationCallbackResult instead of the GRFID. 11 years ago
planetmaker 3cff961713 (svn r25938) -Fix [FS#5798] (r25876): Don't mistake a lighthouse for a transmitter and vice versa 11 years ago
planetmaker 86a658ca21 (svn r25938) -Fix [FS#5798] (r25876): Don't mistake a lighthouse for a transmitter and vice versa 11 years ago
planetmaker c146d59a25 (svn r25880) -Fix (r25875): Special rules for world generation needs be considered in one more place 11 years ago
planetmaker 95b973ec6c (svn r25880) -Fix (r25875): Special rules for world generation needs be considered in one more place 11 years ago
planetmaker 8c86b8c668 (svn r25879) -Change: Allow to remove unowned objects unless they have the 'unremovable' flag 11 years ago
planetmaker 70e4074a4c (svn r25879) -Change: Allow to remove unowned objects unless they have the 'unremovable' flag 11 years ago
planetmaker 91c3c20cc5 (svn r25876) -Codechange: Unify object placement during map creation 11 years ago
planetmaker 8033162bb8 (svn r25876) -Codechange: Unify object placement during map creation 11 years ago
planetmaker 3eed8402f1 (svn r25875) -Change: In scenario editor allow to build all objects which were available at any point in the past to support building scenarios with historic items 11 years ago
planetmaker 2ee9a2b5e7 (svn r25875) -Change: In scenario editor allow to build all objects which were available at any point in the past to support building scenarios with historic items 11 years ago
planetmaker 7ac9dd08ea (svn r25871) -Codechange: Move placement rules for lighthouses to its own function 11 years ago
planetmaker 0bc86ff9ee (svn r25871) -Codechange: Move placement rules for lighthouses to its own function 11 years ago
planetmaker c391cdaf33 (svn r25870) -Codechange: Move placement rules for transmitter to its own function 11 years ago
planetmaker 0a481d5ea6 (svn r25870) -Codechange: Move placement rules for transmitter to its own function 11 years ago
zuu e124838db5 (svn r25849) -Codechange: Introduce IsTileFlat to not compute full slope information for situations when we only want to know if a tile is flat or not (cirdan, LordAro) 11 years ago
zuu dfb5663313 (svn r25849) -Codechange: Introduce IsTileFlat to not compute full slope information for situations when we only want to know if a tile is flat or not (cirdan, LordAro) 11 years ago
frosch b70d64200e (svn r25835) -Change: Increase the total number of object types from 256 to 64000. 11 years ago
frosch ac599625da (svn r25835) -Change: Increase the total number of object types from 256 to 64000. 11 years ago
frosch d9d978d6d2 (svn r25833) -Codechange: Move ObjectType from map array into pool item. 11 years ago
frosch 35d7e8bca4 (svn r25833) -Codechange: Move ObjectType from map array into pool item. 11 years ago
frosch 478500abbc (svn r25832) -Codechange: Reduce variety of object type test functions. 11 years ago
frosch 2080a8c16f (svn r25832) -Codechange: Reduce variety of object type test functions. 11 years ago
frosch 08cedd77b2 (svn r25753) -Fix [FS#5725] (r25557): If old savegames contain bridges over owned land, keep on drawing the bridges nevertheless. 11 years ago
frosch 938ae194a5 (svn r25753) -Fix [FS#5725] (r25557): If old savegames contain bridges over owned land, keep on drawing the bridges nevertheless. 11 years ago
rubidium 5811e3eae7 (svn r23842) -Change [FS#5001, FS#5002]: do not let towns (ever) remove objects 13 years ago
rubidium 60a52404e3 (svn r23842) -Change [FS#5001, FS#5002]: do not let towns (ever) remove objects 13 years ago
rubidium de4ecdb876 (svn r23763) -Fix [FS#4956]: check whether a water tile is really empty when overbuilding it with an object 13 years ago
rubidium 9d958ff581 (svn r23763) -Fix [FS#4956]: check whether a water tile is really empty when overbuilding it with an object 13 years ago
rubidium d5eeab43b7 (svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files 13 years ago
rubidium 6d6be50ae0 (svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files 13 years ago
yexo 7975bedc23 (svn r23723) -Codechange: speedup flood checks a bit 13 years ago
yexo b9e19cc6c1 (svn r23723) -Codechange: speedup flood checks a bit 13 years ago
michi_cc 796fe54a2f (svn r23413) -Add: Company infrastructure counts for canals. 13 years ago
michi_cc c06bbb4863 (svn r23413) -Add: Company infrastructure counts for canals. 13 years ago
frosch cc82b15f2a (svn r23236) -Fix (r23141): Construction of objects was always rejected. 13 years ago
frosch 50b76125cd (svn r23236) -Fix (r23141): Construction of objects was always rejected. 13 years ago
yexo 36e61e08b3 (svn r23160) -Fix: wrong comments in a lot of TileTypeProcs definitions 13 years ago
yexo 6a272233b3 (svn r23160) -Fix: wrong comments in a lot of TileTypeProcs definitions 13 years ago
frosch a608cbab5d (svn r23148) -Change: [NewGRF] Check the results of various callbacks for validness. 13 years ago
frosch 52774235eb (svn r23148) -Change: [NewGRF] Check the results of various callbacks for validness. 13 years ago
frosch ebf19d6219 (svn r23147) -Change: [NewGRF v8] Unify the return values of boolean callbacks, and check the results for validity. 13 years ago
frosch 30874b5e81 (svn r23147) -Change: [NewGRF v8] Unify the return values of boolean callbacks, and check the results for validity. 13 years ago
frosch c0fd4aec7f (svn r23141) -Change: [NewGRF v8] Invert result bit 10 of callbacks 149 and 157 to make them consistent with other slope check callbacks. (michi_cc) 13 years ago
frosch cd029465e1 (svn r23141) -Change: [NewGRF v8] Invert result bit 10 of callbacks 149 and 157 to make them consistent with other slope check callbacks. (michi_cc) 13 years ago
rubidium fb9fb416a1 (svn r23107) -Codechange: let GetSlopePixelZ and TerraformTile tile type functions use int z as well 13 years ago
rubidium 459c9523e8 (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 19eabdba2c (svn r23106) -Codechange: pass int* to GetTileSlope and friends 13 years ago
rubidium 25b3869c3b (svn r23101) -Codechange: remove pointless multiplications by TILE_HEIGHT from the station/object building code 13 years ago
rubidium a8c4efcff4 (svn r23101) -Codechange: remove pointless multiplications by TILE_HEIGHT from the station/object building code 13 years ago
rubidium 5d7acba5d3 (svn r23100) -Codechange: remove pointless multiplications by TILE_HEIGHT for the terraform code 13 years ago
rubidium 1dc685aeea (svn r23100) -Codechange: remove pointless multiplications by TILE_HEIGHT for the terraform code 13 years ago
rubidium fd992c9fd8 (svn r23097) -Codechange: remove pointless multiplications by TILE_HEIGHT from the bridge code 13 years ago
rubidium d0689c2924 (svn r23097) -Codechange: remove pointless multiplications by TILE_HEIGHT from the bridge 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 2ed0f93bfb (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 7757a2ed40 (svn r23091) -Codechange: rename some Get*Z functions to Get*PixelZ functions if they return the Z in pixels (like TilePixelHeight) 13 years ago
yexo a1c1d32405 (svn r22994) -Fix [FS#4775]: tile was cleared before the object-placement callback was run, resulting in possible differences in test and exec run 13 years ago
yexo 534bff1d19 (svn r22994) -Fix [FS#4775]: tile was cleared before the object-placement callback was run, resulting in possible differences in test and exec run 13 years ago
frosch 1df095f114 (svn r22960) -Feature: Allow depots, standard roadstops and airports on steep slopes. 13 years ago
frosch 8d5c1479f4 (svn r22960) -Feature: Allow depots, standard roadstops and airports on steep slopes. 13 years ago
frosch e9e68c3a50 (svn r22698) -Fix [FS#4694]: Only insert cleared object tiles into _cleared_object_areas if clearing actually succeeds, else subsequential tests of the same tile will be skipped and considered successful. 13 years ago
frosch 9c239bb988 (svn r22698) -Fix [FS#4694]: Only insert cleared object tiles into _cleared_object_areas if clearing actually succeeds, else subsequential tests of the same tile will be skipped and considered successful. 13 years ago
michi_cc cf2bfa91a4 (svn r22658) -Feature: [NewGRF] Custom error messages for object callback 0x157. 13 years ago
michi_cc e5dd6f9227 (svn r22658) -Feature: [NewGRF] Custom error messages for object callback 0x157. 13 years ago
michi_cc dd0439c690 (svn r22643) -Fix: Disallow building NewObjects on water tiles owned by another company. 13 years ago
michi_cc 8565703a4c (svn r22643) -Fix: Disallow building NewObjects on water tiles owned by another company. 13 years ago
terkhen e392f26215 (svn r22557) -Codechange: Remove constness from AnimationBase callbacks. 13 years ago
terkhen e127fca384 (svn r22557) -Codechange: Remove constness from AnimationBase callbacks. 13 years ago
smatz c85e1c3089 (svn r22116) -Codechange: use PoolBase::Clean() at more places 13 years ago
smatz 756cc6cf65 (svn r22116) -Codechange: use PoolBase::Clean() at more places 13 years ago
smatz 0ff7e9a114 (svn r22033) -Fix: don't crash when there are too many objects generated already when placing transmitters 14 years ago
smatz 5ccf5cc551 (svn r22033) -Fix: don't crash when there are too many objects generated already when placing transmitters 14 years ago
smatz a54faf0303 (svn r22026) -Fix: don't crash when we generate too many objects while generating map 14 years ago
smatz 9cd5243d04 (svn r22026) -Fix: don't crash when we generate too many objects while generating map 14 years ago
rubidium 3cb12ed89c (svn r22019) -Codechange: s/functions.h/clear_func.h/ 14 years ago
rubidium 0395aab420 (svn r22019) -Codechange: s/functions.h/clear_func.h/ 14 years ago
rubidium 05199a641a (svn r21890) -Cleanup: remove some unneeded includes 14 years ago
rubidium 7eba2bf4d3 (svn r21890) -Cleanup: remove some unneeded includes 14 years ago
rubidium 0cf2ef83f0 (svn r21846) -Codechange: move documentation towards the code to make it more likely to be updated [o-s]. 14 years ago
rubidium 9ca4b629cd (svn r21846) -Codechange: move documentation towards the code to make it more likely to be updated [o-s]. 14 years ago
rubidium 82b1a32f70 (svn r21485) -Codechange: use CircularTileSearch to find whether there's a transmitter nearby 14 years ago
rubidium 1123d4790f (svn r21485) -Codechange: use CircularTileSearch to find whether there's a transmitter nearby 14 years ago
rubidium e590fe22ac (svn r21454) -Codechange: add support for object variable 48 14 years ago
rubidium 5d0da9492e (svn r21454) -Codechange: add support for object variable 48 14 years ago
rubidium 1af7df8ba0 (svn r21453) -Codechange: add the view of an object to the savegame 14 years ago
rubidium cd6180a46d (svn r21453) -Codechange: add the view of an object to the savegame 14 years ago
rubidium 83db490771 (svn r21314) -Fix [FS#4253]: [NewGRF] (Hopefully) make callback 157 behave more like TTDPatch does, i.e. fall back to the default check when the callback is not yielding a result for a tile instead of disallowing building the object 14 years ago
rubidium 31a5f8f043 (svn r21314) -Fix [FS#4253]: [NewGRF] (Hopefully) make callback 157 behave more like TTDPatch does, i.e. fall back to the default check when the callback is not yielding a result for a tile instead of disallowing building the object 14 years ago
frosch 5a355daa5b (svn r21290) -Codechange: Add HasTileWaterGround() to deduplicate some tests. 14 years ago
frosch 612516ff76 (svn r21290) -Codechange: Add HasTileWaterGround() to deduplicate some tests. 14 years ago
frosch 061021cbc5 (svn r21288) -Codechange: Add helper function to find entries in _cleared_object_areas. 14 years ago
frosch d5360390d0 (svn r21288) -Codechange: Add helper function to find entries in _cleared_object_areas. 14 years ago
alberth b698045b82 (svn r21156) -Codechange: Introduce EconomyIsInRecession(). 14 years ago
alberth 43f807a918 (svn r21156) -Codechange: Introduce EconomyIsInRecession(). 14 years ago
rubidium ecb191b1ba (svn r20919) -Fix [FS#4140]: objects didn't change colour when the company changed colour. Now they do, except when the "decide colour" callback is (defined to be) used 14 years ago
rubidium feece0b42c (svn r20919) -Fix [FS#4140]: objects didn't change colour when the company changed colour. Now they do, except when the "decide colour" callback is (defined to be) used 14 years ago
rubidium d160ca90a1 (svn r20909) -Fix [FS#4137]: don't see coasts as water for object construction 14 years ago
rubidium 7bbc19288f (svn r20909) -Fix [FS#4137]: don't see coasts as water for object construction 14 years ago
yexo 66d57b96a8 (svn r20748) -Fix: overbuilding an object tile with sea under it with a canal didn't take the cost for clearing the sea into account 14 years ago
yexo 0e250f2bdf (svn r20748) -Fix: overbuilding an object tile with sea under it with a canal didn't take the cost for clearing the sea into account 14 years ago
yexo 66c1f1881d (svn r20745) -Fix: don't delete an object when trying to terraform a tile of it with canal under it. If we delete the object the terraforming will still fail due to the canal 14 years ago
yexo 72e2e21cb5 (svn r20745) -Fix: don't delete an object when trying to terraform a tile of it with canal under it. If we delete the object the terraforming will still fail due to the canal 14 years ago
yexo 17340f4762 (svn r20744) -Fix: overbuilding an object with water under it failed 14 years ago
yexo 0ab95ba636 (svn r20744) -Fix: overbuilding an object with water under it failed 14 years ago
frosch 4a4dd45193 (svn r20743) -Fix: Make testruns of clearing an object tile not influence repeated testruns resp. the exec run. 14 years ago
frosch 42a996ec23 (svn r20743) -Fix: Make testruns of clearing an object tile not influence repeated testruns resp. the exec run. 14 years ago
frosch e723ce12ea (svn r20742) -Fix: Evaluate DC_NO_WATER flag when clearing objects built on water. 14 years ago
frosch ce1cae81ea (svn r20742) -Fix: Evaluate DC_NO_WATER flag when clearing objects built on water. 14 years ago
yexo ef8fbbe74d (svn r20730) -Fix: crash when removing an object while the newgrf debug window was open for that object 14 years ago
yexo 9a0033cbf6 (svn r20730) -Fix: crash when removing an object while the newgrf debug window was open for that object 14 years ago
yexo 0d040f03e6 (svn r20729) -Fix [FS#4107]: assert when overbuilding object 14 years ago
yexo a45b598bfc (svn r20729) -Fix [FS#4107]: assert when overbuilding object 14 years ago
rubidium f7a1828c2b (svn r20721) -Fix: objects that can be built on water shouldn't be drowned. 14 years ago
rubidium 29eae4a378 (svn r20721) -Fix: objects that can be built on water shouldn't be drowned. 14 years ago
rubidium 509ff70691 (svn r20714) -Fix: bit 9 of object's flags implies bit 3 is set, so just test for either of the bits being set 14 years ago
rubidium e90e831f2e (svn r20714) -Fix: bit 9 of object's flags implies bit 3 is set, so just test for either of the bits being set 14 years ago
rubidium a8d00c2ac0 (svn r20708) -Fix [FS#4101]: upon company bankruptcy some objects weren't removed properly 14 years ago
rubidium dd2c38ea82 (svn r20708) -Fix [FS#4101]: upon company bankruptcy some objects weren't removed properly 14 years ago
rubidium 2e2e8e0ccf (svn r20706) -Fix (r20664): land slope check wasn't called when it should be called 14 years ago
rubidium cf8f6571fc (svn r20706) -Fix (r20664): land slope check wasn't called when it should be called 14 years ago
rubidium c3c8f67cef (svn r20669) -Codechange: trigger the whole object every 256 ticks instead of every 250 ticks 14 years ago
rubidium 2d10b0f11d (svn r20669) -Codechange: trigger the whole object every 256 ticks instead of every 250 ticks 14 years ago
rubidium 34c4e8f259 (svn r20668) -Codechange: add (more) support for bridges over objects 14 years ago
rubidium 41a80490be (svn r20668) -Codechange: add (more) support for bridges over objects 14 years ago
rubidium 738a068006 (svn r20667) -Codechange: implement the autoslope callback for objects 14 years ago
rubidium 3e67b4fe5f (svn r20667) -Codechange: implement the autoslope callback for objects 14 years ago
rubidium b26adf0bd9 (svn r20666) -Codechange: enable drawing of (NewGRF) objects 14 years ago
rubidium d4403cb649 (svn r20666) -Codechange: enable drawing of (NewGRF) objects 14 years ago
rubidium d4240351ca (svn r20665) -Codechange: make clearing object tiles behave (more) like TTDPatch 14 years ago
rubidium fba19a41d5 (svn r20665) -Codechange: make clearing object tiles behave (more) like TTDPatch 14 years ago
rubidium 2ea1ba4589 (svn r20664) -Codechange: implement the land slope callback for objects 14 years ago
rubidium ca7fe458a2 (svn r20664) -Codechange: implement the land slope callback for objects 14 years ago
rubidium 2dd04c0ded (svn r20663) -Codechange: add the GRF name to the tile info window 14 years ago