rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
smatz
0502a6df42
(svn r17113) -Change [FS#265][FS#2094][FS#2589]: apply the subsidy when subsidy's destination is in station's catchment area and cargo packets originate from subsidy's source
...
-Change [FS#1134]: subsidies aren't bound to stations after awarding anymore, they still apply to town or industry, no matter what station is used for loading and unloading. Awarded subsidies from older savegames are lost
-Change [NoAI]: due to these changes, AISubsidy::GetSource and AISubsidy::GetDestination now return STATION_INVALID for awarded subsidies
15 years ago
smatz
738d7fde53
(svn r17107) -Codechange: store type of subsidy source and destination in the Subsidy struct instead of determining it every time it's needed
15 years ago
rubidium
d61be2637e
(svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives
15 years ago
belugas
96f9567fbb
(svn r16978) -Fix(r16977): tab indentation instead of space indentation at beginning of a line, please
15 years ago
belugas
e83102f78b
(svn r16977) -Fix(r1772)[FS#3059]: make it so that failing to generate many random towns in scenario editor returns a failing message.
...
Fix by therken
Doxygen comments by me
15 years ago
rubidium
6435dc89fe
(svn r16912) -Codechange: split waypoint.h in waypoint_base.h and waypoint_func.h
15 years ago
rubidium
39e6dbd5e3
(svn r16886) -Codechange: unify naming of some string IDs related to string codes and group them logically
15 years ago
rubidium
b4f5a1eebb
(svn r16868) -Codechange: unify UpdateAll[Station|Waypoint]VirtCoords
15 years ago
smatz
8718babe90
(svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get()
15 years ago
rubidium
e39646d93b
(svn r16841) -Cleanup: spaces/tabs where they don't belong
15 years ago
rubidium
873adde908
(svn r16825) -Codechange: unify dirtying when updating the viewport signs.
15 years ago
rubidium
79deeee323
(svn r16821) -Codechange: unify the naming of type::UpdateVirtCoord and UpdateAll[Type]VirtCoords.
15 years ago
rubidium
8cad64558f
(svn r16795) -Fix [FS#3025]: houses wouldn't get build on the map edge.
15 years ago
rubidium
bb78e5bb14
(svn r16764) -Codechange: unify the way viewport signs are marked dirty
15 years ago
rubidium
4989b4afb9
(svn r16761) -Codechange: make UpdateViewportSignPos(ition) a class function of ViewportSign
15 years ago
smatz
8786ebbad7
(svn r16746) -Codechange: use Town::PostDestructor() instead of not very clean construct for invalidating nearest town for road tiles
15 years ago
smatz
93557ba4e9
(svn r16714) -Codechange: use pool-like accessors for Subsidy
15 years ago
frosch
523cde0798
(svn r16678) -Codechange: Turn CargoArray into a class, so one does not have to deal with sizeof() wrt. typedef-ed arrays.
15 years ago
frosch
4c3f480f92
(svn r16676) -Codechange: Rename AcceptedCargo to CargoArray and its instances to more meaningful names.
15 years ago
smatz
837b3628d9
(svn r16673) -Codechange: rename GetProducedCargo() to AddProducedCargo() and change its behaviour accordingly
15 years ago
smatz
873a205ae6
(svn r16667) -Codechange: replace GetRandomTown() and GetRandomIndustry() by Town::GetRandom() and Industry::GetRandom()
15 years ago
smatz
0e5af86ead
(svn r16666) -Codechange: replace GetHouseSpecs() by HouseSpec::Get(), hide _house_specs[]
15 years ago
smatz
7b78bae8e7
(svn r16665) -Codechange: replace GetTownByTile() by Town::GetByTile()
15 years ago
smatz
d39c08fd9d
(svn r16664) -Codechange: move house-related stuff from town.h and town_type.h to separate files
15 years ago
smatz
bd208c30e0
(svn r16660) -Codechange: get rid of more dummy tile_type_procs
15 years ago
smatz
5d301445a2
(svn r16659) -Codechange: rename GetAcceptedCargo() to AddAcceptedCargo() and change its behaviour accordingly
...
-Codechange: remove dummy GetAcceptedCargo_*() handlers
15 years ago
smatz
45312433b6
(svn r16632) -Codechange: rename Town::flags12 to Town::flags
15 years ago
frosch
c9eac207ea
(svn r16498) -Codechange: Remove hardly used HASBITS.
16 years ago
alberth
580e478e4e
(svn r16491) -Codechange: Added parentheses around bitwise operators for code style.
16 years ago
frosch
eeb3f75cfe
(svn r16416) -Fix [FS#2912]: Rework deleting of news when referenced vehicles/stations/industries are deleted.
16 years ago
smatz
1eb48cdded
(svn r16403) -Codechange: move code related to subsidies to separate file
16 years ago
smatz
d6e203ebe2
(svn r16379) -Codechange: remove GetNumTowns(), GetNumIndustries() and GetActiveCompanyCount(), use PoolItem::GetNumItems() instead
16 years ago
smatz
50624d5c0f
(svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved
16 years ago
smatz
512db5248e
(svn r16352) -Codechange: use PoolItem::GetIfValid() instead of PoolItem::IsValidID() and PoolItem::Get()
16 years ago
rubidium
c0204dc186
(svn r16329) -Fix: possible desync when removing lots of towns in-game (not that we allow removing towns now, but better not have desync prone code lingering around)
16 years ago
smatz
0c10daa243
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
16 years ago
smatz
d495dc5dbc
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
16 years ago
smatz
7126bcd0e1
(svn r16308) -Fix: parameter is invalid when it's equal to length of an array (Yexo)
16 years ago
smatz
a43f7ad823
(svn r16277) -Codechange: enumerize values and remove unneeded values used for testing town rating
16 years ago
frosch
af12760722
(svn r16268) -Fix (r9876): When callback 2E returns an amount of 0, do not transport 1 unit to the station.
16 years ago
rubidium
27e87d1adc
(svn r16147) -Feature [FS#2635]: give the town generator a slight tendency to build towns near water by not discarding watery random tiles but by searching for near land (db48x)
16 years ago
rubidium
5c5b357043
(svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible.
16 years ago
frosch
d582747919
(svn r16101) -Cleanup (r14591): Remove an assertion to increase performance.
16 years ago
smatz
d046fea1b9
(svn r15890) -Codechange: unify the way 'can a town be placed here?' checks are done
...
-Change: the requirements for location of 'random' town are now a bit less strict
16 years ago
smatz
fa0b0a5eb7
(svn r15831) -Fix: make sure house class/ID counters don't overflow
16 years ago
smatz
f32f1a78f2
(svn r15744) -Fix (r9667): when town generator failed to create requested number of towns, there were too many cities
16 years ago
rubidium
6487883084
(svn r15729) -Fix: silence MSVC warning
16 years ago
smatz
e0fe28fdc9
(svn r15726) -Codechange: unify coding style for const pointers
16 years ago
rubidium
c3e87f345d
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
16 years ago
rubidium
3a3607862d
(svn r15697) -Fix (r15695): warning about comparing signed vs unsigned.
16 years ago
belugas
aa441cd4d7
(svn r15695) -Feature [FS#2672]: Allow the number of towns that will be generated in the generate world window to be customized.
...
Some warnings:
-the maximum number of towns to be accepted is set to 5000
-the minimum number of towns to be accepted is set to 1
-the number that is specified is NOT guaranteed to be the exact number of towns generated. The normal mechanism of town creation has not been modified. So town placement can still fail.
-setting a custom number of town will change your difficulty settings to custom as well
16 years ago
rubidium
e27d12d788
(svn r15689) -Fix [FS#2720]: do not crash when the generate map doesn't contain a suitable location for a town.
16 years ago
peter1138
88e641282c
(svn r15662) -Fix (r11795): Don't mark a company as having ratings in a town when querying the cost of a command.
16 years ago
smatz
f5b24edc1e
(svn r15642) -Codechange: use a default parameter value in CalcClosestTownFromTile
16 years ago
yexo
47803bc3a7
(svn r15639) -Change: When you disable "Towns are allowed to build roads", pressing "Expand" in the town window in the scenario editor will no longer build roads.
16 years ago
rubidium
56b6d78bf7
(svn r15604) -Fix [FS#2661]: towns would only build houses where the grid would not be, even when they aren't allowed to build roads and the user 'implements' another layout.
16 years ago
yexo
894d61ca47
(svn r15585) -Codechange: Remove TILE_ASSERT and replace all instances with assert(tile < MapSize()).
16 years ago
yexo
b8601d903d
(svn r15584) -Codechange: Move several variables from variables.h to more appropriate headers.
16 years ago
smatz
2f63571203
(svn r15572) -Fix (r13730): theoretical buffer overflow when company with too long name funded a road reconstruction
16 years ago
smatz
b8438555df
(svn r15505) -Codechange: pass name of new town as parameter to CMD_BUILD_TOWN
16 years ago
rubidium
6a4ab97d36
(svn r15454) -Fix [FS#2614]: towns did not know about build_on_slopes in some cases, or made decisions on the 'original' slope instead the slope after applying the foundation..
16 years ago
frosch
d5525b8f2d
(svn r15452) -Codechange: Add DC_NO_MODIFY_TOWN_RATING.
16 years ago
frosch
f9feb4a0e6
(svn r15449) -Codechange: Rename DC_NO_TOWN_RATING to DC_NO_TEST_TOWN_RATING as that is what it does.
16 years ago
rubidium
5c8cf85613
(svn r15434) -Codechange: bit of type safety for the DC_xxx flags.
16 years ago
rubidium
4431e82beb
(svn r15397) -Fix [FS#2618]: a town could build a statue under a bridge.
16 years ago
frosch
6f9d6ffe80
(svn r15381) -Fix (r11091): When testing for parallel road two tiles away, do not move more than one tile along the road.
16 years ago
frosch
78fc8aa93c
(svn r15380) -Fix (r15190)[FS#2603]: Do not use TileY() on negative TileIndexDiffs. But the test was not needed anyway, as those tiles were already tested in previous iterations.
16 years ago
smatz
f561fa2891
(svn r15352) -Codechange: make the arguments passed around while founding a town a bit more readable
16 years ago
smatz
e80255c4ae
(svn r15342) -Feature: allow changing town layout in the 'Found new town' window
16 years ago
smatz
3a8d57816a
(svn r15340) -Fix [FS#2121]: changing town road layout in-game caused ugly road networks
...
-Fix: use a flag instead of TL_NO_ROADS to forbid towns to build roads. The flag is ignored during world generation, so there won't be 'ghost' towns anymore
-Feature: town layout is now stored per town, so it is possible to (manually) set different layout for each town
16 years ago
smatz
9021c20b5e
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
Yexo
e3c69b7c4e
(svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map.
16 years ago
belugas
9bd7b6bd0c
(svn r15172) -Feature: Allow a grf to customize house name via callback 0x14D, during Tile Inquiry process
16 years ago
peter1138
b85389dca5
(svn r15149) -Codechange: GetMaskOfTownActions() is used by a Cmd handler, therefore it does not belong in _gui.
16 years ago
truebrain
c2406cd42d
(svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to see.
...
NoAI is an API (a framework) to build your own AIs in. See:
http://wiki.openttd.org/wiki/index.php/AI:Main_Page
With many thanks to:
- glx and Rubidium for their syncing, feedback and hard work
- Yexo for his feedback, patches, and AIs which tested the system very deep
- Morloth for his feedback and patches
- TJIP for hosting a challenge which kept NoAI on track
- All AI authors for testing our AI API, and all other people who helped in one way or another
-Remove: all old AIs and their cheats/hacks
16 years ago
frosch
b58cdfc294
(svn r14992) -Codechange: Rename 'CheckIfAuthorityAllows' to 'CheckIfAuthorityAllowsNewStation' and unduplicate a tiny bit of code.
16 years ago
smatz
c5db2ea181
(svn r14958) -Codechange [FS#1923]: when checking for unique names, compare only with manually set names
...
There are situations that aren't solvable (because of different language files), so if the user really wants to have duplicated name, allow him to do so. It solves desyncs between server and clients using different languages. It behaves the same in SP and MP, so users won't see the different behaviour as a bug (and even checking in SP could be worked around by the user).
16 years ago
rubidium
d197060137
(svn r14933) -Codechange: check the whether a pool item can be constructed instead of trying to make it and check for NULL.
16 years ago
smatz
91233ea596
(svn r14828) -Codechange: move most of save/load-specific code to separate files
16 years ago
rubidium
d44ba26cd7
(svn r14821) -Change [FS#2390]: make the road grids of town match, when all are using the same road layout ofcourse (cirdan)
16 years ago
smatz
b00e510140
(svn r14807) -Codechange: use INVALID_TILE instead of 0 to mark invalid depots, industries, towns and waypoints
16 years ago
rubidium
d3144b6f04
(svn r14789) -Feature: allow scrolling with the left mouse button pressed (if enabled). Primarily useful for systems with touch screen (aapo)
16 years ago
rubidium
e83cca7d13
(svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter.
16 years ago
smatz
bd92143e7b
(svn r14742) -Codechange: use SmallMap in two cases to reduce compilation time and binary size
16 years ago
rubidium
bf6ec8b19f
(svn r14735) -Codechange: remove a bit of bit-waste in the map array (without changing the map array) and make the CompanyIDs contiguous.
...
-Note: 15 should be enough for now... making it any more means adding more bytes to the map array and thus wasting more bits instead of reducing the bit waste.
16 years ago
frosch
70f2b95bda
(svn r14611) -Fix (r13437)[FS#2421]: Store the age of a house in the map array instead of the construction year.
...
Note: Savegames from r13437 to now are broken and have a age of 255 years for a lot houses.
16 years ago
frosch
f61b577652
(svn r14596) -Fix (r14591): Missing 'return'.
16 years ago
smatz
698f05e756
(svn r14591) -Fix [FS#2388](r14528): cached nearest town could be invalid after importing older savegame and during town generation
...
-Codechange: rewrite parts of code responsible for caching index of nearest town
16 years ago
rubidium
52ac592422
(svn r14528) -Codechange: cache the closest town for all road tiles instead of only roads owned by tiles. This replaces a O(n) search over all towns from the road's tileloop with a O(1) lookup (PhilSophus)
16 years ago
michi_cc
9c6541c80b
(svn r14504) -Cleanup: Use the right variable type for tile offsets.
16 years ago
rubidium
b0537d271f
(svn r14491) -Documentation: updates/additions of doxygen docs (Alberth)
16 years ago
rubidium
e38213b5ef
(svn r14490) -Codechange: fix comment style on a few locations (Alberth)
16 years ago
rubidium
b5e467978b
(svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus)
16 years ago
rubidium
e589c7e580
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
16 years ago
rubidium
f56e630e5c
(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
16 years ago
rubidium
8fe7d9f217
(svn r14404) -Change [FS#2176]: don't make the town flatten land unconditionally when build on slopes is turned on. Based on a patch by Eddi.
16 years ago
frosch
e10127f032
(svn r14335) -Codechange: Remove some magic numbers.
16 years ago
smatz
e543181b12
(svn r14334) -Feature: ability to reset name to default/automatic value (for vehicles, engines, towns, groups, stations, waypoints, managers and companies)
16 years ago
rubidium
8dffbcfd26
(svn r14064) -Fix [FS#1752]: check for the length of strings (in bytes) in the command. Checking for the length in pixels is impossible because that differs per client.
16 years ago
smatz
abea03fb89
(svn r13830) -Feature: show additional NewGRF info in the Tile Info window for stations, houses and industries
16 years ago
rubidium
cde65455ac
(svn r13731) -Codechange: make a pool of the array of players.
16 years ago
rubidium
56ad26a3aa
(svn r13730) -Fix: make a copy of the names for news messages about the deletion of companies as the removal of a company could lead to wrong names in the news messages.
16 years ago
rubidium
6898a76c5f
(svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line with all other structs/classes that are in a pool.
16 years ago
frosch
545c1f1045
(svn r13634) -Codechange: Let house var 0x65 ignore the house, the variable is queried for.
17 years ago
frosch
2b071f84ea
(svn r13632) -Codechange: Use 'void *' for user-data of CircularTileSearch().
17 years ago
smatz
40d5242f91
(svn r13618) -Codechange: move tar-specific declarations to separate file
...
Removes indirect dependency on <string> and <map> for over 40 files
17 years ago
frosch
8fd2971bc3
(svn r13518) -Fix [FS#2083]: Properly count number of non-north housetiles.
17 years ago
rubidium
c97a045f57
(svn r13489) -Fix: first determine where to *exactly* build a house before asking a NewGRF whether the location is good instead of possibly moving the house a tile after the NewGRF said the location is good.
17 years ago
glx
b60a1326bf
(svn r13390) -Codechange: introduce usererror() for fatal but not openttd related errors. Now all error() will 'crash' openttd after showing the message in win32 releases (MSVC), creating a crash.log and crash.dmp (like the '!' hack used before). On the other hand, usererror() will just close the game. So use error() only when it can be helpful to debugging, else use usererror().
17 years ago
belugas
c39997508e
(svn r13383) -Codechange: Put the cost of house removal in a class member
17 years ago
belugas
0cf79d70d0
(svn r13368) -Codechange: give house's min/max_date a better name, as it is really year, not date
17 years ago
belugas
f7b79916e8
(svn r13367) -Codechange: Allow CircularTileSearch function to return the tile where search has been successful, or INVALID_TILE if it has not
17 years ago
smatz
c1619d1321
(svn r13362) -Fix: make the town authority window a bit less glitchy
17 years ago
smatz
69ebefe1ac
(svn r13351) -Codechange: disable warnings about unused variable for builds without asserts
17 years ago
rubidium
e7a501100a
(svn r13325) -Codechange: split the client-side only settings from the settings stored in the savegame so there is no need to have a duplicate copy of it for new games.
17 years ago
peter1138
6c7e6861f8
(svn r13297) -Codechange: Use GUIList for the town directory window
17 years ago
rubidium
d289464d69
(svn r13255) -Codechange: move _opt to _settings.
17 years ago
rubidium
dc77647ea4
(svn r13251) -Codechange: rename _patches to _settings as that is more logic.
...
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
17 years ago
frosch
8f104a2e97
(svn r13233) -Fix: Replace some (incorrect) evaluations of TileOwner by RoadOwner.
...
-Fix: Before evaluating RoadOwner, check if the roadtype is present.
-Fix: Some places assumed that MP_ROAD means normal street.
17 years ago
belugas
08671d2e78
(svn r13226) -Feature: Allow to have more than only two airports per town. The number of airports is now controlled by the noise each of them generates, the distance from town's center and how tolerant the town is.
...
Initial concept : TTDPatch (moreairpots), Initial code : Pasky
Thanks to BigBB (help coding), Smatz Skidd13 and frosch for bugcatches and advices
17 years ago
frosch
7f80552293
(svn r13206) -Feature(ette): Display all owners of a tile in the tile-info-window.
17 years ago
rubidium
373343cef6
(svn r13100) -Codechange: reduce the amount of parameters passed via AddNewsMessage as there is (for each news message type) a tuple of 4 parameters that is the same for all calls.
17 years ago
rubidium
1ce0b03bf0
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
17 years ago
smatz
36bb91cc6d
(svn r12929) -Fix [FS#1967](r12560): town rating was too often reset to Mediocre
17 years ago
smatz
299b15c2bf
(svn r12920) -Fix (r12859): town rating was affected even after the test run
17 years ago
rubidium
b2717d1426
(svn r12859) -Fix: make the town rating tests use less memory and much quicker; from 13% to unnoticable in the profile in games with lots of towns and lots of very active AIs.
17 years ago
rubidium
d56827a9a9
(svn r12855) -Codechange: do not use autoptr's for testing whether certain objects can be build, but check it directly in the pool so we do not have to call destructors in the testing phase. Stations still use the autoptr though.
17 years ago
rubidium
e947fde701
(svn r12819) -Codechange: handle more NewGRFs in the same way as TTDP does it, i.e. testing the low bits for 0xFF or 0 instead of all bits.
17 years ago
rubidium
5a17e6b395
(svn r12817) -Feature: the ability to play NewGRF sounds for industries and stations.
17 years ago
rubidium
d010ae9408
(svn r12801) -Codechange: remove the dependency of function.h in town_map.h
17 years ago
rubidium
f4b07a78c4
(svn r12762) -Fix: tabs after the first non-tab character are generally not okay (or lines starting with a space and then tabs).
17 years ago
rubidium
ca1f8fbe2e
(svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators.
17 years ago
rubidium
18e64b28e2
(svn r12757) -Codechange: move all cheat related stuff from all over the place to a single location.
17 years ago
rubidium
6d063c3ad6
(svn r12754) -Codechange: split depot.h into depot_map.h, depot_func.h and depot_base.h and remove quite a lot of unneeded (before this) includes of depot.h.
17 years ago
smatz
867566f7f0
(svn r12731) -Fix (r12726): copying a 16bit array into 32bit wouldn't work
17 years ago
rubidium
08894026da
(svn r12726) -Fix [FS#1877]: overflow causing strange building behaviour in towns.
17 years ago
frosch
91e53e23ca
(svn r12717) -Fix (r11107): Check the TILE_NOT_SLOPED flag of the _north_ tile of multi-tile houses to decide if autoslope is allowed.
17 years ago
smatz
76eaed68a0
(svn r12599) -Codechange: force AllocateSafeRaw() to be linked to simplify compiler's decisions about inlining
17 years ago
rubidium
bd432258cb
(svn r12596) -Feature: show what cargos a station could be supplied with. Patch by Roujin.
17 years ago
smatz
9532cde5ff
(svn r12564) -Fix: towns couldn't terraform when inflation rised terraform prices enough
17 years ago
smatz
f5e445a252
(svn r12562) -Cleanup: variable scope in terraform_cmd.cpp
17 years ago
smatz
401c7b6752
(svn r12561) -Fix: do not affect town rating change by the order in which we examine stations
17 years ago
smatz
39dc3d3eda
(svn r12560) -Cleanup: town_cmd.cpp and header files - variable scope and a bit of coding style
17 years ago
smatz
fcf4a7067d
(svn r12547) -Feature: invisibility options to make objects invisible instead of transparent
17 years ago
skidd13
1e7f2dbc10
(svn r12534) -Feature: Add a new type of town road layouts - random for each town
17 years ago
skidd13
e64beee656
(svn r12513) -Codechange: rename OriginalTileRandomiser something more descriptive
17 years ago
rubidium
877ca99198
(svn r12495) -Codechange: reduce the dependency on newgrf_station.h (especially because newgrf_station.h includes a lot of stuff).
17 years ago
rubidium
c51b81c247
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
17 years ago
rubidium
2426f5342f
(svn r12459) -Codechange: split news.h into news_type.h and news_func.h.
17 years ago
skidd13
49cf499cf2
(svn r12381) -Fix [FS1835] [FS1535] (r11855): The number of houses wasn't computed right. A few other things regaring the updating had to be changed. Big thanks for support to frosch123 and SmatZ, to name just a few. (Inspired by a patch of bilbo)
17 years ago
smatz
e5709f3ad8
(svn r12201) -Fix (r12060): compilation warnings - uninitialized variable when compiling with assert disabled
17 years ago
frosch
7f3d56041b
(svn r12199) -Codechange: Remove magic around the results of GetTileTrackStatus().
17 years ago
smatz
9f619f91b3
(svn r12177) -Codechange: use 'side' parameter in GetTileTrackStatus so there can be less checks in pathfinders for depots/stations/tunnels/bridges
17 years ago
smatz
68fda40e4f
(svn r12162) -Fix [FS#1757]: towns shouldn't build over houses owned by another town
17 years ago
smatz
423864a101
(svn r12161) -Fix: towns will no longer build houses > 1x1 there where should be road (with 2x2, 3x3 grid town layouts)
17 years ago
smatz
91456a93f0
(svn r12063) -Cleanup: use C++ indenting and variable scope/declaration in BuildTownHouse()
17 years ago
smatz
4f2f7f52a6
(svn r12062) -Fix: possible deadlock when there are no houses available to build at given tile
...
-Fix: houses with zero probability could be built
17 years ago
smatz
e9b22d7c70
(svn r12060) -Fix: do not clear tiles when the town won't be able to build any buildings anyway
...
-Fix: allow building 2x2 building on slopes if not explicitly forbidden
-Fix: it was possible to build 2x1 and 1x2 buildings on slopes even if it was not allowed
17 years ago
peter1138
ef66b08784
(svn r12031) -Fix [FS#1689,FS#1719]: Prevent towns from removing or claiming ownership of player owned tiles when growing.
17 years ago
skidd13
bd1115e7ff
(svn r12021) -Cleanup: Make some parts of the town growth a bit more descriptive
...
-Codechange: Remove some needless checks
17 years ago
rubidium
8b90809718
(svn r11925) -Fix (r122, r9867): loading old, pre savegame version 2, savegames.
17 years ago
belugas
88206b8808
(svn r11873) -Codechange: less a few magical numbers and a tiny bit more comments on town zones
17 years ago
glx
8344327a91
(svn r11855) -Fix [FS#1335]: recompute town population when removing a 'newhouses' grf, or when loading a game with missing 'newhouses' grfs
17 years ago
belugas
e91e9d9b4e
(svn r11851) -Codechange: A few magic numbers removal, plus a little code style
17 years ago
rubidium
fafab82a31
(svn r11832) -Codechange: get rid of (quite) some VARDEFs.
17 years ago
rubidium
90acd52f22
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
17 years ago
peter1138
0f7392bd61
(svn r11822) -Codechange: Replaced fixed size custom name array. Names are now attached to their object directly and there is
...
no limit to the amount of names.
-Fix: NewGRF engines could not be renamed.
17 years ago
rubidium
2fc62eab05
(svn r11818) -Codechange: split player.h into smaller pieces.
17 years ago
glx
8ee8d1b964
(svn r11795) -Fix [FS#1616]: take town rating into account when testing if a command can be executed.
17 years ago
rubidium
0365c1f33b
(svn r11793) -Codechange: pass the expense type via the CommandCost instead of a global variable. Patch by Noldo (FS#1114).
17 years ago
rubidium
64d691bacc
(svn r11787) -Codechange: more header rewrites. This time related to viewport.h.
17 years ago
rubidium
b09d957f31
(svn r11777) -Codechange: split the string header and make do not include it when it's not necessary.
17 years ago
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
17 years ago
glx
bf57e3d868
(svn r11750) -Revert (r11749): commited too much
17 years ago
glx
e9a35fd75d
(svn r11749) -Fix (r11352): when a bankrupted company is bought, reset vehicle color mapping so the vehicles use the new owner color
17 years ago
rubidium
722613f7f3
(svn r11706) -Codechange: split vehicle.h and remove another bunch of useless includes.
17 years ago
rubidium
db73addb43
(svn r11702) -Codechange: move all date related stuff to date*.
17 years ago
rubidium
f82aeb82c5
(svn r11701) -Codechange: removal unnecessary inclusions of map.h (and split map.h).
17 years ago
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'
17 years ago
rubidium
20ecff81b0
(svn r11685) -Codechange: remove a few 'useless' includes.
17 years ago
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.
17 years ago
rubidium
3074bca136
(svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
17 years ago
rubidium
766551b0bc
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
17 years ago
rubidium
8427b8bad2
(svn r11675) -Codechange: split the string types from the string functions.
17 years ago
rubidium
be923601bf
(svn r11669) -Codechange: refactor tile.h -> tile_type.h and tile_map.h
17 years ago
rubidium
efc18e8ab3
(svn r11663) -Codechange: moving of the road related types and functions.
17 years ago
smatz
d56a690ba4
(svn r11649) -Codechange: some code can be simplified thanks to changes in r11642
17 years ago
smatz
926fe5c9e9
(svn r11644) -Codechange: merge some functions from tunnel_map.h and bridge_map.h into tunnelbridge_map.h
17 years ago
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.
17 years ago
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
17 years ago
skidd13
3ae50673a3
(svn r11484) -Codechange: Remove the doubled function SetBitT and rename the remaining to fit with the naming style
17 years ago
skidd13
6801cceda1
(svn r11482) -Codechange: Remove the doubled function ClrBitT and rename the remaining to fit with the naming style
17 years ago
skidd13
c0a2c0c23e
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
17 years ago
rubidium
ccf610e13c
(svn r11454) -Fix: the CHANCE16 functions were biased; a 32768 in 65536 chance was really a 32769 in 65536 chance.
17 years ago
rubidium
5bbb31a896
(svn r11436) -Fix [FS#1439]: Towns would not build roads on slopes. Patch by divide.
17 years ago
rubidium
a46f502d5f
(svn r11430) -Fix (r11421) [FS#1421]: there was still one case that would cause a crash...
17 years ago
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.
17 years ago
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.
17 years ago
truelight
b02337bbe0
(svn r11397) -Fix r11395: some minor fixes for better town-bridge results (and better comments) (skidd13 / TrueLight)
17 years ago