peter1138
88e641282c
(svn r15662) -Fix (r11795): Don't mark a company as having ratings in a town when querying the cost of a command.
2009-03-10 06:53:00 +00:00
smatz
f5b24edc1e
(svn r15642) -Codechange: use a default parameter value in CalcClosestTownFromTile
2009-03-08 01:20:11 +00:00
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.
2009-03-07 21:36:13 +00:00
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.
2009-03-03 22:46:08 +00:00
yexo
894d61ca47
(svn r15585) -Codechange: Remove TILE_ASSERT and replace all instances with assert(tile < MapSize()).
2009-02-25 21:50:54 +00:00
yexo
b8601d903d
(svn r15584) -Codechange: Move several variables from variables.h to more appropriate headers.
2009-02-25 21:45:14 +00:00
smatz
2f63571203
(svn r15572) -Fix (r13730): theoretical buffer overflow when company with too long name funded a road reconstruction
2009-02-24 22:57:02 +00:00
smatz
b8438555df
(svn r15505) -Codechange: pass name of new town as parameter to CMD_BUILD_TOWN
2009-02-16 23:23:33 +00:00
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..
2009-02-11 20:41:17 +00:00
frosch
d5525b8f2d
(svn r15452) -Codechange: Add DC_NO_MODIFY_TOWN_RATING.
2009-02-11 18:50:47 +00:00
frosch
f9feb4a0e6
(svn r15449) -Codechange: Rename DC_NO_TOWN_RATING to DC_NO_TEST_TOWN_RATING as that is what it does.
2009-02-11 18:33:27 +00:00
rubidium
5c8cf85613
(svn r15434) -Codechange: bit of type safety for the DC_xxx flags.
2009-02-09 21:20:05 +00:00
rubidium
4431e82beb
(svn r15397) -Fix [FS#2618]: a town could build a statue under a bridge.
2009-02-07 16:02:29 +00:00
frosch
6f9d6ffe80
(svn r15381) -Fix (r11091): When testing for parallel road two tiles away, do not move more than one tile along the road.
2009-02-06 20:51:24 +00:00
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.
2009-02-06 20:24:44 +00:00
smatz
f561fa2891
(svn r15352) -Codechange: make the arguments passed around while founding a town a bit more readable
2009-02-05 13:33:37 +00:00
smatz
e80255c4ae
(svn r15342) -Feature: allow changing town layout in the 'Found new town' window
2009-02-04 22:52:34 +00:00
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
2009-02-04 20:17:25 +00:00
smatz
9021c20b5e
(svn r15299) -Cleanup: remove many redundant includes
2009-01-31 20:16:06 +00:00
Yexo
e3c69b7c4e
(svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map.
2009-01-21 02:31:55 +00:00
belugas
9bd7b6bd0c
(svn r15172) -Feature: Allow a grf to customize house name via callback 0x14D, during Tile Inquiry process
2009-01-20 16:06:57 +00:00
peter1138
b85389dca5
(svn r15149) -Codechange: GetMaskOfTownActions() is used by a Cmd handler, therefore it does not belong in _gui.
2009-01-19 12:07:01 +00:00
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
2009-01-12 17:11:45 +00:00
frosch
b58cdfc294
(svn r14992) -Codechange: Rename 'CheckIfAuthorityAllows' to 'CheckIfAuthorityAllowsNewStation' and unduplicate a tiny bit of code.
2009-01-11 14:26:11 +00:00
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).
2009-01-10 15:54:07 +00:00
rubidium
d197060137
(svn r14933) -Codechange: check the whether a pool item can be constructed instead of trying to make it and check for NULL.
2009-01-09 14:59:02 +00:00
smatz
91233ea596
(svn r14828) -Codechange: move most of save/load-specific code to separate files
2009-01-04 15:32:25 +00:00
rubidium
d44ba26cd7
(svn r14821) -Change [FS#2390]: make the road grids of town match, when all are using the same road layout ofcourse (cirdan)
2009-01-04 10:50:24 +00:00
smatz
b00e510140
(svn r14807) -Codechange: use INVALID_TILE instead of 0 to mark invalid depots, industries, towns and waypoints
2009-01-03 16:06:58 +00:00
rubidium
d3144b6f04
(svn r14789) -Feature: allow scrolling with the left mouse button pressed (if enabled). Primarily useful for systems with touch screen (aapo)
2009-01-02 22:42:05 +00:00
rubidium
e83cca7d13
(svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter.
2008-12-28 14:37:19 +00:00
smatz
bd92143e7b
(svn r14742) -Codechange: use SmallMap in two cases to reduce compilation time and binary size
2008-12-26 13:50:46 +00:00
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.
2008-12-24 09:53:15 +00:00
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.
2008-11-23 14:17:41 +00:00
frosch
f61b577652
(svn r14596) -Fix (r14591): Missing 'return'.
2008-11-19 16:53:24 +00:00
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
2008-11-18 22:43:59 +00:00
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)
2008-10-25 13:51:47 +00:00
michi_cc
9c6541c80b
(svn r14504) -Cleanup: Use the right variable type for tile offsets.
2008-10-20 19:35:48 +00:00
rubidium
b0537d271f
(svn r14491) -Documentation: updates/additions of doxygen docs (Alberth)
2008-10-19 15:39:12 +00:00
rubidium
e38213b5ef
(svn r14490) -Codechange: fix comment style on a few locations (Alberth)
2008-10-19 09:51:19 +00:00
rubidium
b5e467978b
(svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus)
2008-10-14 18:38:51 +00:00
rubidium
e589c7e580
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
2008-09-30 20:51:04 +00:00
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.
2008-09-30 20:39:50 +00:00
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.
2008-09-26 19:11:15 +00:00
frosch
e10127f032
(svn r14335) -Codechange: Remove some magic numbers.
2008-09-15 19:55:00 +00:00
smatz
e543181b12
(svn r14334) -Feature: ability to reset name to default/automatic value (for vehicles, engines, towns, groups, stations, waypoints, managers and companies)
2008-09-15 19:02:50 +00:00
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.
2008-08-13 06:22:04 +00:00
smatz
abea03fb89
(svn r13830) -Feature: show additional NewGRF info in the Tile Info window for stations, houses and industries
2008-07-25 22:37:34 +00:00
rubidium
cde65455ac
(svn r13731) -Codechange: make a pool of the array of players.
2008-07-18 16:40:29 +00:00
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.
2008-07-18 16:26:51 +00:00