Commit Graph

99 Commits

Author SHA1 Message Date
rubidium 970fd6220a (svn r11685) -Codechange: remove a few 'useless' includes. 2007-12-23 11:20:41 +00:00
rubidium 8f0e68285b (svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type. 2007-12-22 23:30:28 +00:00
rubidium 6a9e77e079 (svn r11680) -Codechange: refactor more out of openttd.h and functions.h. 2007-12-21 22:50:51 +00:00
rubidium 9e9cfe6e59 (svn r11677) -Codechange: move price and command related types/functions to their respective places. 2007-12-21 21:50:46 +00:00
rubidium 433a9f3c09 (svn r11675) -Codechange: split the string types from the string functions. 2007-12-21 19:49:27 +00:00
rubidium 5b49e75453 (svn r11669) -Codechange: refactor tile.h -> tile_type.h and tile_map.h 2007-12-19 23:26:02 +00:00
rubidium e4ef359f47 (svn r11663) -Codechange: moving of the road related types and functions. 2007-12-18 20:38:16 +00:00
smatz 145517fb8e (svn r11649) -Codechange: some code can be simplified thanks to changes in r11642 2007-12-16 19:30:42 +00:00
smatz 3cee0abdba (svn r11644) -Codechange: merge some functions from tunnel_map.h and bridge_map.h into tunnelbridge_map.h 2007-12-16 15:38:51 +00:00
rubidium d736a04b59 (svn r11525) -Fix: do not do all kinds of 'updates' for town, waypoint, station and other signs when you haven't converted the map to the 'current' format as that means you are going to read data in the 'old' format when you assume that it is in the 'current' format. 2007-11-25 20:20:16 +00:00
skidd13 bdc7fd2d76 (svn r11523) -Codechange: Move the CHANCE macros to core/random_func.cpp cause they depend on Random()
-Codechange: Convert the CHANCE macros to functions and rename them fitting to the naming style
2007-11-25 15:35:25 +00:00
skidd13 eeaa348f8b (svn r11484) -Codechange: Remove the doubled function SetBitT and rename the remaining to fit with the naming style 2007-11-20 13:35:54 +00:00
skidd13 5c31a973a1 (svn r11482) -Codechange: Remove the doubled function ClrBitT and rename the remaining to fit with the naming style 2007-11-19 21:32:20 +00:00
skidd13 71c4325c50 (svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style 2007-11-19 21:02:30 +00:00
rubidium 80a7a91730 (svn r11454) -Fix: the CHANCE16 functions were biased; a 32768 in 65536 chance was really a 32769 in 65536 chance. 2007-11-17 23:16:41 +00:00
rubidium 53e811ff29 (svn r11436) -Fix [FS#1439]: Towns would not build roads on slopes. Patch by divide. 2007-11-15 17:51:36 +00:00
rubidium f0915957d4 (svn r11430) -Fix (r11421) [FS#1421]: there was still one case that would cause a crash... 2007-11-13 22:44:41 +00:00
rubidium 8752519896 (svn r11421) -Fix [FS#1431]: do not use a function that asserts when wrapping around the map's edge when you use the wrapping (and MP_VOID tiles) to determine whether the bridge can be build. 2007-11-12 19:21:33 +00:00
belugas f55fdfb7c4 (svn r11399) -Feature(ette): transparency settings can now be saved and thus remembered.
-Codechange: Wrap all transparency settings in accessors, hiding the implementation
-Change: Clicking "transparent building" menu will toggle Houses And Trees only.  The other options can be used in the transparency gui.
Initial patch by Smatz (FS#1349), with some rework by BigBB and your humble servant.
2007-11-10 01:17:15 +00:00
truelight e4aec527e0 (svn r11397) -Fix r11395: some minor fixes for better town-bridge results (and better comments) (skidd13 / TrueLight) 2007-11-09 13:21:48 +00:00
truelight 71f443cbdc (svn r11395) -Fix: allow town-bridges to be build on slopes (Rafal Rzepecki) 2007-11-09 11:20:36 +00:00
rubidium 4e32964c18 (svn r11315) -Fix [FS#1353]: towns are not growing beyond height differences. Patch by skidd13. 2007-10-20 17:38:23 +00:00
maedhros 54369cba0f (svn r11308) -Fix (r9315): Change the house id as well as the house spec when using an overridden town building, since the house id is the one that's used to actually build the house. 2007-10-20 10:19:23 +00:00
rubidium ba7c595d84 (svn r11276) -Codechange: be more consistent with naming of some accessors.
-Fix: make sure canals are never owned by water. Based on a patch by boekabart.
2007-10-16 19:48:58 +00:00
glx 1ff0197ca4 (svn r11243) -Fix: update waypoint signs when renaming a town 2007-10-10 01:36:15 +00:00
rubidium 39a8b5549e (svn r11215) -Codechange: replace magic constants with less magic symbols. Patch by skidd13. 2007-10-05 22:39:15 +00:00
belugas 7525f791c7 (svn r11197) -Fix: It is not useful to reset the override of an entity every time a new grf file is been submitted.
Since newhouses showed the way to newindustries(meaning I copied/adapted a lot of code and processes from it), the behaviour was there for newhouses too.
2007-10-03 00:57:54 +00:00
rubidium ff14665f6e (svn r11188) -Codechange: rewrite of the town action related code (remove some of the magic).
-Feature: possibility to disable exclusive rights and giving money. Both by skidd13.
2007-09-30 17:38:42 +00:00
rubidium 127c7c9b0f (svn r11173) -Codechange: rename some callback enums so they are more uniform. 2007-09-26 17:33:32 +00:00
rubidium 01edaeec57 (svn r11172) -Codechange: rewrite of town road building and addition of the possibility to clean up unconnected road bits during the local road reconstructions. Based on a patch by skidd13. 2007-09-26 16:12:43 +00:00
rubidium 5d4311c07a (svn r11130) -Fix [FS#1207]: towns build roads that weren't connected to any other road. 2007-09-19 18:15:59 +00:00
rubidium fef64185b8 (svn r11107) -Feature: some tool so one can still build tunnels under rails (and other structures) when the owner of the structure built it on foundations and if you have enough "empty" space ofcourse. One could use the tool for some other construction needs too. Patch by frosch. 2007-09-14 22:27:40 +00:00
rubidium 6f296b9870 (svn r11102) -Codechange: remove some pointless addition+substractions. Patch by frosch. 2007-09-14 21:32:21 +00:00
belugas 1e4f8d7a23 (svn r11091) -Codechange: Partial rewrite of the road management code of towns, in order to make it more readable and with improved performance. (FS#1161 by skidd13) 2007-09-12 23:56:21 +00:00
rubidium 30b3819870 (svn r11069) -Codechange: allow slopes under statues. Patch by kaan. 2007-09-09 11:30:44 +00:00
rubidium 65f9a0f21a (svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman. 2007-09-09 10:13:17 +00:00
rubidium c81eafdaa0 (svn r11015) -Fix [FS#1166]: towns would build bridges through eachother. 2007-08-31 13:06:28 +00:00
rubidium b284b5fa92 (svn r11005) -Codechange: move the tiletype specific terraforming checks to the functions for those tile types.
-Codechange: barren the rail grounds on terraforming.
2007-08-30 17:17:04 +00:00
belugas 41a0bd2b74 (svn r10994) -Codechange: Change some function names to be more representative and more fitting of trunk's naming convention (skidd13) 2007-08-28 01:09:41 +00:00
belugas 6212b29b23 (svn r10993) -Codechange: A few less magical numbers (skidd13) 2007-08-27 23:50:56 +00:00
rubidium 5ce935c6eb (svn r10991) -Codechange: add documentation, enumification and some code simplifications to the terraforming code. Patch by frosch. 2007-08-27 21:18:04 +00:00
rubidium 83e1fdcb01 (svn r10799) -Fix: only calling QuickFree and not the destructor on pool cleanups might cause memory leaks due to the way C++ works. 2007-08-05 21:20:55 +00:00
glx 8cea2059a5 (svn r10787) -Fix r10755: _total_towns was not increased when placing town manually in scenario editor 2007-08-04 23:35:27 +00:00
rubidium 2dd7a5d296 (svn r10773) -Codechange: use pool.CleanPool instead of CleanPool(&pool) and similarly for AddBlock*. 2007-08-03 20:18:38 +00:00
rubidium e4149482ec (svn r10759) -Codechange: make the industry struct use the pool item class as super class. 2007-08-02 23:21:52 +00:00
rubidium db374f600c (svn r10755) -Codechange: make the town struct use the pool item class as super class. 2007-08-02 21:05:54 +00:00
rubidium 7fb3f54584 (svn r10733) -Codechange: change MP_STREET into MP_ROAD as we use the word "road" everywhere except in the tile type. 2007-07-29 23:42:59 +00:00
rubidium d624f66c79 (svn r10698) -Codechange [FS#1082]: simplify the code related to foundations. Primarily removal of (duplicated|magic) code and introduction of few helper functions to ease foundation determination. Patch by frosch. 2007-07-26 16:51:10 +00:00
rubidium 02ab86631e (svn r10696) -Codechange: remove duplication of the "make sprite transparent" code. 2007-07-26 14:07:11 +00:00
belugas fb92e30dfb (svn r10505) -Fix(r10249)[FS#1016]: Town was still trying to gather information for tiles on which it could not build. aising the values to 2 will prevent further invasion of the water-at-the-edge :) 2007-07-11 02:13:00 +00:00