Commit Graph

90 Commits

Author SHA1 Message Date
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. 2016-09-18 14:07:52 +00:00
rubidium
dc2b4f2498 (svn r26879) -Codechange: remove most MayHaveBridgeAbove calls since the data is now always accessible 2014-09-21 11:24:51 +00:00
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 2014-04-23 20:13:33 +00:00
frosch
3484660ab1 (svn r26240) -Codechange: Pass the GRFFile to GetErrorMessageFromLocationCallbackResult instead of the GRFID. 2014-01-12 18:00:19 +00:00
planetmaker
3cff961713 (svn r25938) -Fix [FS#5798] (r25876): Don't mistake a lighthouse for a transmitter and vice versa 2013-11-04 17:59:58 +00:00
planetmaker
c146d59a25 (svn r25880) -Fix (r25875): Special rules for world generation needs be considered in one more place 2013-10-18 15:23:41 +00:00
planetmaker
8c86b8c668 (svn r25879) -Change: Allow to remove unowned objects unless they have the 'unremovable' flag 2013-10-17 21:47:16 +00:00
planetmaker
91c3c20cc5 (svn r25876) -Codechange: Unify object placement during map creation 2013-10-17 21:41:17 +00:00
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 2013-10-17 21:37:25 +00:00
planetmaker
7ac9dd08ea (svn r25871) -Codechange: Move placement rules for lighthouses to its own function 2013-10-17 21:25:15 +00:00
planetmaker
c391cdaf33 (svn r25870) -Codechange: Move placement rules for transmitter to its own function 2013-10-17 21:22:39 +00:00
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) 2013-10-12 22:07:58 +00:00
frosch
b70d64200e (svn r25835) -Change: Increase the total number of object types from 256 to 64000. 2013-10-12 16:31:55 +00:00
frosch
d9d978d6d2 (svn r25833) -Codechange: Move ObjectType from map array into pool item. 2013-10-12 16:30:42 +00:00
frosch
478500abbc (svn r25832) -Codechange: Reduce variety of object type test functions. 2013-10-12 16:30:22 +00:00
frosch
08cedd77b2 (svn r25753) -Fix [FS#5725] (r25557): If old savegames contain bridges over owned land, keep on drawing the bridges nevertheless. 2013-09-02 18:37:44 +00:00
rubidium
5811e3eae7 (svn r23842) -Change [FS#5001, FS#5002]: do not let towns (ever) remove objects 2012-01-22 21:26:42 +00:00
rubidium
de4ecdb876 (svn r23763) -Fix [FS#4956]: check whether a water tile is really empty when overbuilding it with an object 2012-01-06 19:49:44 +00:00
rubidium
d5eeab43b7 (svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files 2012-01-03 21:32:51 +00:00
yexo
7975bedc23 (svn r23723) -Codechange: speedup flood checks a bit 2012-01-03 00:44:23 +00:00
michi_cc
796fe54a2f (svn r23413) -Add: Company infrastructure counts for canals. 2011-12-03 23:40:23 +00:00
frosch
cc82b15f2a (svn r23236) -Fix (r23141): Construction of objects was always rejected. 2011-11-16 20:39:30 +00:00
yexo
36e61e08b3 (svn r23160) -Fix: wrong comments in a lot of TileTypeProcs definitions 2011-11-08 17:37:32 +00:00
frosch
a608cbab5d (svn r23148) -Change: [NewGRF] Check the results of various callbacks for validness. 2011-11-08 17:27:13 +00:00
frosch
ebf19d6219 (svn r23147) -Change: [NewGRF v8] Unify the return values of boolean callbacks, and check the results for validity. 2011-11-08 17:26:49 +00:00
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) 2011-11-08 17:24:31 +00:00
rubidium
fb9fb416a1 (svn r23107) -Codechange: let GetSlopePixelZ and TerraformTile tile type functions use int z as well 2011-11-04 11:36:10 +00:00
rubidium
70faeeaba9 (svn r23106) -Codechange: pass int* to GetTileSlope and friends 2011-11-04 11:30:37 +00:00
rubidium
25b3869c3b (svn r23101) -Codechange: remove pointless multiplications by TILE_HEIGHT from the station/object building code 2011-11-04 10:31:13 +00:00
rubidium
5d7acba5d3 (svn r23100) -Codechange: remove pointless multiplications by TILE_HEIGHT for the terraform code 2011-11-04 10:30:10 +00:00
rubidium
fd992c9fd8 (svn r23097) -Codechange: remove pointless multiplications by TILE_HEIGHT from the bridge code 2011-11-04 10:28:20 +00:00
rubidium
bcb93b3b75 (svn r23093) -Codechange: add a default NULL for the Z of GetTileSlope and use it 2011-11-04 10:22:27 +00:00
rubidium
de980ef0f9 (svn r23091) -Codechange: rename some Get*Z functions to Get*PixelZ functions if they return the Z in pixels (like TilePixelHeight) 2011-11-04 10:18:13 +00:00
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 2011-10-04 20:18:12 +00:00
frosch
1df095f114 (svn r22960) -Feature: Allow depots, standard roadstops and airports on steep slopes. 2011-09-25 13:35:17 +00:00
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. 2011-07-30 12:28:49 +00:00
michi_cc
cf2bfa91a4 (svn r22658) -Feature: [NewGRF] Custom error messages for object callback 0x157. 2011-07-11 16:32:30 +00:00
michi_cc
dd0439c690 (svn r22643) -Fix: Disallow building NewObjects on water tiles owned by another company. 2011-07-08 14:42:18 +00:00
terkhen
e392f26215 (svn r22557) -Codechange: Remove constness from AnimationBase callbacks. 2011-06-12 20:32:52 +00:00
smatz
c85e1c3089 (svn r22116) -Codechange: use PoolBase::Clean() at more places 2011-02-19 23:05:47 +00:00
smatz
0ff7e9a114 (svn r22033) -Fix: don't crash when there are too many objects generated already when placing transmitters 2011-02-08 21:49:39 +00:00
smatz
a54faf0303 (svn r22026) -Fix: don't crash when we generate too many objects while generating map 2011-02-08 18:39:29 +00:00
rubidium
3cb12ed89c (svn r22019) -Codechange: s/functions.h/clear_func.h/ 2011-02-07 22:38:02 +00:00
rubidium
05199a641a (svn r21890) -Cleanup: remove some unneeded includes 2011-01-22 14:52:20 +00:00
rubidium
0cf2ef83f0 (svn r21846) -Codechange: move documentation towards the code to make it more likely to be updated [o-s]. 2011-01-18 23:09:43 +00:00
rubidium
82b1a32f70 (svn r21485) -Codechange: use CircularTileSearch to find whether there's a transmitter nearby 2010-12-12 18:18:50 +00:00
rubidium
e590fe22ac (svn r21454) -Codechange: add support for object variable 48 2010-12-10 21:32:52 +00:00
rubidium
1af7df8ba0 (svn r21453) -Codechange: add the view of an object to the savegame 2010-12-10 21:32:04 +00:00
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 2010-11-24 23:08:12 +00:00
frosch
5a355daa5b (svn r21290) -Codechange: Add HasTileWaterGround() to deduplicate some tests. 2010-11-21 18:38:45 +00:00