smatz
f02cf9281b
(svn r11760) -Codechange: unify the way how other end of a tunnel/bridge is determined at some places
...
-Fix: adding road/tram to tram/road bridge was cheaper by one tile
2008-01-04 19:45:29 +00:00
glx
bf57e3d868
(svn r11750) -Revert (r11749): commited too much
2008-01-03 23:54:23 +00:00
glx
e9a35fd75d
(svn r11749) -Fix (r11352): when a bankrupted company is bought, reset vehicle color mapping so the vehicles use the new owner color
2008-01-03 23:50:58 +00:00
rubidium
722613f7f3
(svn r11706) -Codechange: split vehicle.h and remove another bunch of useless includes.
2007-12-27 13:35:39 +00:00
rubidium
db73addb43
(svn r11702) -Codechange: move all date related stuff to date*.
2007-12-26 13:50:40 +00:00
rubidium
f82aeb82c5
(svn r11701) -Codechange: removal unnecessary inclusions of map.h (and split map.h).
2007-12-26 11:45:43 +00:00
rubidium
81bf9f8503
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
2007-12-25 11:26:07 +00:00
rubidium
20ecff81b0
(svn r11685) -Codechange: remove a few 'useless' includes.
2007-12-23 11:20:41 +00:00
rubidium
1f6043458c
(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
3074bca136
(svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
2007-12-21 22:50:51 +00:00
rubidium
766551b0bc
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
2007-12-21 21:50:46 +00:00
rubidium
8427b8bad2
(svn r11675) -Codechange: split the string types from the string functions.
2007-12-21 19:49:27 +00:00
rubidium
be923601bf
(svn r11669) -Codechange: refactor tile.h -> tile_type.h and tile_map.h
2007-12-19 23:26:02 +00:00
rubidium
efc18e8ab3
(svn r11663) -Codechange: moving of the road related types and functions.
2007-12-18 20:38:16 +00:00
smatz
d56a690ba4
(svn r11649) -Codechange: some code can be simplified thanks to changes in r11642
2007-12-16 19:30:42 +00:00
smatz
926fe5c9e9
(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
91152b925e
(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
e36dba227b
(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
3ae50673a3
(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
6801cceda1
(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
c0a2c0c23e
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
2007-11-19 21:02:30 +00:00
rubidium
ccf610e13c
(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
5bbb31a896
(svn r11436) -Fix [FS#1439]: Towns would not build roads on slopes. Patch by divide.
2007-11-15 17:51:36 +00:00
rubidium
a46f502d5f
(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
14c092faad
(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
f26a591e6c
(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
b02337bbe0
(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
1ebfc21e7a
(svn r11395) -Fix: allow town-bridges to be build on slopes (Rafal Rzepecki)
2007-11-09 11:20:36 +00:00
rubidium
9a32d5f44f
(svn r11315) -Fix [FS#1353]: towns are not growing beyond height differences. Patch by skidd13.
2007-10-20 17:38:23 +00:00
maedhros
3a361422fa
(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
3bcfe14cd1
(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
94c9e65331
(svn r11243) -Fix: update waypoint signs when renaming a town
2007-10-10 01:36:15 +00:00
rubidium
df9392a737
(svn r11215) -Codechange: replace magic constants with less magic symbols. Patch by skidd13.
2007-10-05 22:39:15 +00:00
belugas
23eed48a92
(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
7350b88bf2
(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
a28b307c95
(svn r11173) -Codechange: rename some callback enums so they are more uniform.
2007-09-26 17:33:32 +00:00
rubidium
80a3590bf5
(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
1e7df4fb91
(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
3055d42fc4
(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
556035f448
(svn r11102) -Codechange: remove some pointless addition+substractions. Patch by frosch.
2007-09-14 21:32:21 +00:00
belugas
495c07cd08
(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
8b46bc7b98
(svn r11069) -Codechange: allow slopes under statues. Patch by kaan.
2007-09-09 11:30:44 +00:00
rubidium
0ca9fd7dc2
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
2007-09-09 10:13:17 +00:00
rubidium
b3f9121f14
(svn r11015) -Fix [FS#1166]: towns would build bridges through eachother.
2007-08-31 13:06:28 +00:00
rubidium
f4482907da
(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
cb3843b820
(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
da58abafe8
(svn r10993) -Codechange: A few less magical numbers (skidd13)
2007-08-27 23:50:56 +00:00
rubidium
759255df12
(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
8f719a7b2d
(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
3245f97832
(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
655b2048e5
(svn r10773) -Codechange: use pool.CleanPool instead of CleanPool(&pool) and similarly for AddBlock*.
2007-08-03 20:18:38 +00:00
rubidium
2f89fef353
(svn r10759) -Codechange: make the industry struct use the pool item class as super class.
2007-08-02 23:21:52 +00:00
rubidium
032de036dd
(svn r10755) -Codechange: make the town struct use the pool item class as super class.
2007-08-02 21:05:54 +00:00
rubidium
2800a49f03
(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
903a0a08c2
(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
a26ef1ee3a
(svn r10696) -Codechange: remove duplication of the "make sprite transparent" code.
2007-07-26 14:07:11 +00:00
belugas
a59b7f492d
(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
belugas
95c877cf71
(svn r10504) -Codechange: Shorten the test if no track bit has been found
2007-07-11 01:45:44 +00:00
rubidium
7cb7488836
(svn r10493) -Codechange: update some callback ID enums to reflect their changed usage, add a few and update the comments.
2007-07-09 19:38:12 +00:00
glx
bb3eb6eed4
(svn r10413) -Fix r10211: t->townnamegrfid was not cleared when renaming a town
2007-07-03 15:24:50 +00:00
peter1138
cd0e022172
(svn r10364) -Fix [FS#706]: checking for duplicate custom names was inconsistent, and tested all 'namespaces'. now only check names of the same type.
2007-06-27 20:53:25 +00:00
peter1138
8ee9e8bf1e
(svn r10323) -Codechange: reference company name, number and player (president) name
...
by index
2007-06-25 13:30:38 +00:00
rubidium
21711da99d
(svn r10253) -Fix (r10249): putting the < the wrong way around made the new towns pretty small.
2007-06-21 16:12:31 +00:00
rubidium
3307cb32f4
(svn r10249) -Fix [FS#906]: town tried to gather information about the neighbourhood of a tile when it couldn't even *ever* build on that tile.
2007-06-21 15:13:09 +00:00
glx
623a848cca
(svn r10211) -Feature: [NewGRF] Add support for action 0F
2007-06-18 23:00:55 +00:00
rubidium
773a7c9cb6
(svn r10205) -Codechange: refactor returning of cost, so it can be more easily modified.
2007-06-18 19:53:50 +00:00
rubidium
82e79b847e
(svn r10200) -Codechange: add "shortcut" for !CmdFailed (CmdSucceeded).
2007-06-18 16:42:40 +00:00
rubidium
3ccc83e640
(svn r10197) -Codechange: replace int32 with CommandCost where appropriate.
2007-06-18 10:48:15 +00:00
belugas
0f0b58d429
(svn r10167) -Codechange: Change the flagging system of grf loaded feature from a bitset to a bool evaluation.
...
Like easier to read and faster to evaluate :)
2007-06-15 23:55:52 +00:00
rubidium
47d7124207
(svn r10081) -Fix [FS851]: towns/AIs didn't build bridges anymore (boekabart).
2007-06-10 10:52:19 +00:00
belugas
4c243d099c
(svn r10005) -Codechange: Merge two flags (2cc and newhouses) indicating some newgrf features have been loaded, and introduce the newindustry one.
2007-05-31 19:13:41 +00:00
rubidium
821e58ac95
(svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple road types on a single tile.
2007-05-24 22:41:50 +00:00
rubidium
51109475a2
(svn r9892) -Codechange: lots of ground work for allowing multiple types of "road" with multiple owners on a single tile.
2007-05-20 19:14:08 +00:00
peter1138
d22478a22b
(svn r9876) -Codechange: [NewHouses] Add support for callback 2E (cargo production)
2007-05-19 11:17:30 +00:00
peter1138
9a4b4ba448
(svn r9873) -Codechange: Add missing second callback parameter for houses
2007-05-19 09:13:08 +00:00
belugas
641d51a5ad
(svn r9850) -Codechange: Introduction of the Override/Substitute manager. Currently only used for newhouses.
...
Basically, it is more a gathering of IDs from grf files and ingame data.
2007-05-15 21:36:58 +00:00
belugas
eec76d9b49
(svn r9830) -Fix(r9779) : Let the town expand and build new houses along the roads of the users, even in case of "No Road" layout (skiddl13)
2007-05-13 00:11:13 +00:00
maedhros
304075b389
(svn r9823) -Feature: Add support for house property 1F - minimum life span.
2007-05-10 16:03:06 +00:00
belugas
b559b8f9ff
(svn r9779) -Feature: Add the possiblity to choose different road patterns for towns to use.
...
Possible patterns are :
No Road (not available in scenario editor)
Original (for the nostalgics)
Better Roads (same as original, but based on distance of 2 tiles instead of one)
2x2 grids
3x3 grids
Patch by skiddl13
2007-05-04 16:27:13 +00:00
belugas
7de20df379
(svn r9762) -Feature: Two new difficulty settings : Very low number of towns and very low number of industries
...
Based on FS#289, by pitt2
2007-05-01 17:16:51 +00:00
maedhros
a469d88364
(svn r9743) -Fix [FS#598]: Stop flooded towns from building roads on water.
2007-04-29 09:18:52 +00:00
belugas
3a7afb581f
(svn r9722) -Documentation: Document some functions of town_cmd.cpp. Loosely based on work from TheJosh
...
More to come.
2007-04-27 02:27:44 +00:00
peter1138
5f98f22a49
(svn r9712) -Codechange: Implement accepted cargo types and cargo acceptance (there is a difference) callbacks for newhouses.
2007-04-21 20:23:20 +00:00
rubidium
7577954ced
(svn r9672) -Cleanup: lots of coding style fixes around operands.
2007-04-18 22:10:36 +00:00
maedhros
1a81c1cedd
(svn r9667) -Feature: Add the concept of cities. A (configurable) proportion of towns can
...
start off larger, and will grow twice as quickly as other towns. They can also
be placed specifically in the scenario editor. Thanks to TheJosh for the
initial patch and the idea.
2007-04-18 14:23:30 +00:00
belugas
0eaa72e324
(svn r9665) -Documentation: Doxygen corrections,errors, corrections of corrections...
2007-04-18 00:41:09 +00:00
maedhros
21fcae536b
(svn r9614) -Feature: Use the normal growth rate values when the growth rate is set to none and "Fund new buildings" is used.
2007-04-12 18:23:47 +00:00
maedhros
f2a14a813a
(svn r9613) -Feature: Make it possible to have some control over the town growth. The
...
default rate is TTD's original rate, and to approximate OpenTTD's previous
behaviour the rate should be set to "Fast" or "Very Fast". Town growth can be
switched off entirely, and if so, buildings will not be rebuilt. It is also
possible to specify a proportion of towns that grow twice as fast as the
others.
2007-04-12 17:24:34 +00:00
peter1138
51d72c11c8
(svn r9563) -Feature: Add more finer control to transparency options, including a new toolbar, accessible from the map menu or Ctrl X. Patch by Wolf01.
2007-04-05 07:49:04 +00:00
belugas
4c4f2a34ef
(svn r9558) -Documentation: doxygen and comment changes: 'T' now. Almost done
2007-04-04 03:21:14 +00:00
belugas
691f8578fd
(svn r9400) -Codechange: Use some more representative enum names for landscape types.
2007-03-22 03:42:43 +00:00
peter1138
93fe91cc8c
(svn r9388) -Codechange: variable scope and type, and standardify all CargoID loops.
2007-03-21 13:19:01 +00:00
maedhros
94db6aa1a2
(svn r9371) -Feature: Add support for variable snow lines in the arctic climate, supplied
...
by newgrf files. When this is enabled forests cannot be built below the highest
snow line, and farms can't be built above it. Houses still use the
_opt.snow_line so they are all consistent, so to make them respect the snowline
you may want to use some newhouses features as well.
2007-03-20 13:47:00 +00:00
maedhros
ad0b5de3da
(svn r9367) -Fix (r9315): If a new house doesn't have a corresponding action 3, the
...
graphics for the substitute (original) house should be drawn instead.
2007-03-20 10:06:39 +00:00
belugas
4e5567a710
(svn r9366) -Codechange: Unify the different houses acceptances attributes on their cargo counterpart, as well as specifying cargo slot.
2007-03-20 02:24:14 +00:00
maedhros
209101391a
(svn r9315) -Merge: The newhouses branch. With this merge comes almost complete support for
...
the newhouses grf specs, so all newhouses grfs will be playable in the game.
Many thanks to everyone who contributed code and ideas, and all the testers
who found things we missed.
2007-03-19 11:27:30 +00:00
truelight
c5a6a4458b
(svn r9066) -Fix [FS#638]: store the owner of a statue, so when it gets removed, the town is notified of it
2007-03-08 14:34:32 +00:00
rubidium
4169bfba06
(svn r9050) -Codechange: Foo(void) -> Foo()
2007-03-07 11:47:46 +00:00
belugas
5792aa85c7
(svn r8987) -Cleanup: doxygen changes. Again. Mostly (still) @files missing tags and (more than just) a few comments style.
2007-03-03 04:04:22 +00:00
tron
ac75cf0ae1
(svn r8875) -Fix
...
Remove unnecessary EnsureNoVehicle() checks because they are
- pointless per se (f.e. there are no vehicles on house tiles)
- done again (f.e. using CMD_LANDSCAPE_CLEAR just a few lines later)
2007-02-24 06:46:20 +00:00