alberth
43b4d23b07
(svn r20215) -Fix [FS#3971]: Remove all road pieces rather than aborting at the first ownership error (Krille).
2010-07-25 10:04:13 +00:00
rubidium
b8487afe54
(svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :)
2010-07-19 17:28:27 +00:00
rubidium
73527b7b45
(svn r20190) -Codechange: unVARDEF _generate_world and move it to genworld
2010-07-19 17:17:36 +00:00
terkhen
40e58f78ba
(svn r20113) -Add [FS#3895]: Show an specific error message when trying to remove nonexistant roads (Krille).
2010-07-10 20:12:32 +00:00
terkhen
f363f64c51
(svn r20099) -Fix [FS#3882]: Give priority to ownership errors while removing roads.
2010-07-09 16:41:51 +00:00
alberth
82fc340a0a
(svn r20097) -Codechange: Share constant bitset of safe level crossing slopes.
2010-07-09 12:14:02 +00:00
michi_cc
34f32cbbf4
(svn r20049) -Feature: [NewGRF] Add a railtype flag to disallow level crossings per railtype.
2010-07-02 16:34:11 +00:00
rubidium
b1d60d66cf
(svn r20036) -Fix [FS#3911]: tram tracks didn't show at level crossing with the new railtypes
2010-06-30 16:08:12 +00:00
yexo
9cfb61adf5
(svn r20003) -Feature [FS#3886]: [NewGRF] var 43 depot build date for railtypes
2010-06-20 19:13:02 +00:00
rubidium
93ff7d78e1
(svn r19799) -Change: give depots an unique name in the same manner buoys and waypoints are named
2010-05-12 19:21:00 +00:00
rubidium
fe71d4fc99
(svn r19791) -Change: use the typed FOR_EACH_SET_BIT for RoadTypes (adf88)
2010-05-11 21:01:57 +00:00
frosch
75d4bc947d
(svn r19654) -Codechange: Use Extract<> in more places.
2010-04-17 13:31:41 +00:00
frosch
b76f0185d4
(svn r19616) -Codechange: Increase transparency of 'Extract' by passing also the number of used bits.
2010-04-13 17:29:19 +00:00
smatz
0ef33548c2
(svn r19614) -Codechange: "it's" => "its" where appropriate
2010-04-12 14:12:47 +00:00
alberth
05d705e077
(svn r19494) -Codechange: Remove _error_message.
2010-03-20 17:58:24 +00:00
alberth
b714160fcc
(svn r19491) -Codechange: Keep track of last error in CmdRemoveLongRoad().
2010-03-20 17:14:26 +00:00
frosch
7bf13ea692
(svn r19436) -Fix: With certain game settings one could clear tiles for free when building long roads.
2010-03-16 17:54:10 +00:00
peter1138
604da97364
(svn r19434) -Add: Add rail speed limit to land area information window.
2010-03-16 06:43:41 +00:00
alberth
05e549ccdc
(svn r19420) -Codechange: Don't use _error_message to keep track of success/failure, use a had_success boolean.
2010-03-14 15:42:26 +00:00
alberth
3b367ab708
(svn r19415) -Codechange: Forward CommandCost with an error back to the caller.
2010-03-14 12:58:51 +00:00
alberth
5e7c4398ae
(svn r19412) -Codechange (r9942): One pair of parentheses is enough.
2010-03-13 20:03:58 +00:00
alberth
7cc68f493d
(svn r19405) -Codechange: CheckOwnership() returns a CommandCost.
2010-03-13 17:11:28 +00:00
alberth
7e1a91db21
(svn r19402) -Codechange: CheckAllowRemoveRoad() returns a CommandCost.
2010-03-13 15:53:44 +00:00
alberth
6b6ff9c52b
(svn r19400) -Codechange: CheckforTownRating returns a CommandCost.
2010-03-13 15:33:07 +00:00
alberth
40f106ba7c
(svn r19372) -Codechange: CheckTileOwnership() returns a CommandCost.
2010-03-07 20:44:05 +00:00
alberth
c395b93acd
(svn r19319) -Codechange: EnsureNoVehicleOnGround() returns a CommandCost.
2010-03-05 21:20:22 +00:00
alberth
63dd6ce6b0
(svn r19291) -Codechange: Rename HasVehicleOnTunnelBridge() to TunnelBridgeIsFree() and return a CommandCost status.
2010-02-28 18:15:19 +00:00
smatz
1ad5e1cece
(svn r19249) -Fix [FS#3642](r18803): start and end tiles were swapped in CMD_REMOVE_LONG_ROAD
2010-02-25 14:09:58 +00:00
alberth
e8d40d6a19
(svn r19128) -Codechange: CommandCost cost methods return void instead of a copy of *this.
2010-02-14 15:30:08 +00:00
peter1138
898e879bd9
(svn r19056) -Add: [NewGRF] Action 3/2/1 (i.e. new graphics) support for rail types. (To be documented...)
2010-02-07 22:22:54 +00:00
smatz
d62d0ac489
(svn r19019) -Codechange: use HasExactlyOneBit() and HasAtMostOneBit() instead of CountBits() where possible
2010-02-05 17:05:58 +00:00
terkhen
9cf602c7c1
(svn r19016) -Fix [FS#3591]: When removing roads, the player was also charged for removing the foundations.
2010-02-05 14:11:25 +00:00
terkhen
b02a522038
(svn r18986) -Fix (r18803): Make building long roads fail for AIs if there is an obstacle in the way.
2010-02-02 21:25:01 +00:00
frosch
5f4f562d53
(svn r18975) -Cleanup: CMD_REMOVE_ROAD is unused.
2010-01-31 20:55:10 +00:00
frosch
cbbe311cea
(svn r18974) -Fix [FS#3578]: CMD_BUILD_ROAD missed CMD_AUTO. Also do not access tiles anymore after clearing them; that fails either in test or exec run.
2010-01-31 20:28:36 +00:00
rubidium
f94c83a387
(svn r18872) -Codechange: introduce PaletteID and use it
2010-01-21 01:38:13 +00:00
rubidium
4d93b704d9
(svn r18866) -Codechange: remove the CmdFailed(ret)/CmdSucceeded(ret) wrapper functions
2010-01-18 22:57:21 +00:00
frosch
24e0945bc4
(svn r18846) -Codechange: Merge DrawTileSeq into DrawCommonTileSeq.
2010-01-17 15:05:25 +00:00
frosch
2e9529aff3
(svn r18840) -Codechange: Use DrawCommonTileSeq[InGUI] for roaddepot drawing.
2010-01-16 22:52:51 +00:00
rubidium
82fc28f77f
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
2010-01-15 16:41:15 +00:00
rubidium
c390e8f00e
(svn r18803) -Feature [FS#3318]: make building (long) roads work like building rail; build upon the first obstruction instead of failing totally. Patch by Terkhen.
2010-01-14 23:05:07 +00:00
belugas
1335914ec8
(svn r18798) -Codechange: Simplify use of parameter p2 by using the data it is represeting. Based on work by Terkhen
2010-01-14 15:52:26 +00:00
rubidium
3e481c4027
(svn r18710) -Fix [FS#3478]: the wrong town is mentioned in the error when trying to make one way roads of town owned roads
2010-01-04 11:35:12 +00:00
frosch
a9d4147eb2
(svn r18702) -Fix [FS#3467]: Enable DrawGroundSpriteAt() to deal with foundations as DrawGroundSprite() does, and use this for drawing one-way-road-signs and clear-land-fences.
2010-01-03 20:55:00 +00:00
peter1138
7b136d1fdd
(svn r18509) -Codechange (r2515,r2753): Data for drawing single_x/y rail pieces was inverted.
2009-12-15 13:59:20 +00:00
rubidium
9426f2b173
(svn r18379) -Codechange: move the cache updating function to its own header to reduce the include 'pathfinder' dependencies
2009-12-02 16:48:55 +00:00
rubidium
f52e27c688
(svn r18364) -Codechange: move the pathfinders and their related files into a separate directory
2009-12-01 22:45:39 +00:00
frosch
1725a73700
(svn r18295) -Fix [FS#bigos](r18283): Missed one PR_TERRAFORM.
2009-11-26 00:10:16 +00:00
frosch
830231e2bd
(svn r18283) -Feature: [NewGRF] Add new price bases for removing industries, building/removing unmovables (new objects), building/removing rail-waypoints/buoys, interacting with town-authority, building foundations, funding primary industries (when not prospecting) and towns.
...
If a GRF does not set price multipliers for these new prices, but for the previously used ones, the old modifiers will be propagated to the new bases.
2009-11-24 22:15:42 +00:00
rubidium
860b9b1cea
(svn r18028) -Codechange: unglobalise some functions
2009-11-09 10:40:33 +00:00
frosch
ba1fc280e3
(svn r18005) -Codechange: Convert the Prices struct into an array and an enum.
2009-11-07 22:47:54 +00:00
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
2009-10-04 17:16:41 +00:00
rubidium
ca91a97826
(svn r17579) -Fix: remove doxygen docs for removed parameters, or change @param to @tparam if necessary
2009-09-19 15:17:47 +00:00
rubidium
e8ddf001c8
(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos
2009-09-19 09:51:14 +00:00
rubidium
04d5b67eb6
(svn r17567) -Fix: some doxygen warnings
2009-09-18 14:23:58 +00:00
rubidium
860a538adc
(svn r17495) -Codechange: replace 'Depot::Get(GetDepotIndex(tile))->index' with GetDepotIndex(tile)
2009-09-10 14:37:55 +00:00
rubidium
55ddce8da2
(svn r17493) -Codechange: store the depot index on the map
2009-09-10 14:33:07 +00:00
rubidium
bb94724a09
(svn r17492) -Codechange: don't store the town index for road depots.
2009-09-10 14:27:43 +00:00
rubidium
130781102e
(svn r17443) -Fix (r17442): clear the depot tile after removing the depot in all cases instead of only for ships; makes removing road/rail depots not crash :)
2009-09-07 08:35:45 +00:00
rubidium
6b2ff71e2c
(svn r17363) -Fix [FS#3163] (r16717): feed autoreplace the front of vehicles, otherwise it gets distracted and bails out
2009-09-01 21:54:59 +00:00
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +00:00
yexo
367ff2375a
(svn r17239) -Change [FS#2802]: allow overbuilding the front tile of a roadstation / roaddepot with road
...
to be consistent with overbuilding the front tile of tunnels/bridges and also to make it easier for AIs to
connect roadstations and roaddepots to the road in front of it
2009-08-20 15:59:35 +00:00
rubidium
1fe3ad3288
(svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives
2009-08-05 17:59:21 +00:00
smatz
47b111449b
(svn r17071) -Fix: give a better error message when trying to make road one-way when it doesn't belong to you
2009-08-05 14:33:30 +00:00
rubidium
8405d7d7e7
(svn r16907) -Codechange: make a more clear distinction between reservation functions that return a bool and that return TrackBits; GetRailStationReservation vs GetRailwayStationReservation, which one returns the bool and which one the TrackBits?
2009-07-21 22:37:10 +00:00
smatz
59f94619c7
(svn r16746) -Codechange: use Town::PostDestructor() instead of not very clean construct for invalidating nearest town for road tiles
2009-07-05 13:21:51 +00:00
smatz
50b5678e26
(svn r16673) -Codechange: rename GetProducedCargo() to AddProducedCargo() and change its behaviour accordingly
2009-06-27 17:05:20 +00:00
frosch
c4418d243a
(svn r16669) -Cleanup (r1): Only animated tiles are... animated.
2009-06-26 20:03:16 +00:00
smatz
e6a165881c
(svn r16664) -Codechange: move house-related stuff from town.h and town_type.h to separate files
2009-06-26 13:44:14 +00:00
smatz
c0ac230e3e
(svn r16660) -Codechange: get rid of more dummy tile_type_procs
2009-06-25 20:08:59 +00:00
smatz
c30a87758f
(svn r16659) -Codechange: rename GetAcceptedCargo() to AddAcceptedCargo() and change its behaviour accordingly
...
-Codechange: remove dummy GetAcceptedCargo_*() handlers
2009-06-25 19:23:09 +00:00
smatz
05c695a647
(svn r16646) -Codechange: rename GetDepotByTile() to Depot::GetByTile()
2009-06-24 19:26:41 +00:00
smatz
0c10006907
(svn r16527) -Codechange: use static member functions instead of simple casts when converting Vehicle to specialised vehicle types. Includes safety check
2009-06-06 16:54:22 +00:00
alberth
bab70a823d
(svn r16491) -Codechange: Added parentheses around bitwise operators for code style.
2009-06-01 11:43:36 +00:00
smatz
5a463c8347
(svn r16442) -Codechange: use new Vehicle accessors at more places
2009-05-26 22:45:48 +00:00
rubidium
7a37220881
(svn r16390) -Codechange: move u.road to RoadVehicle.
2009-05-22 20:22:20 +00:00
smatz
62a7948af0
(svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved
2009-05-22 15:13:50 +00:00
smatz
871107f529
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
2009-05-17 01:00:56 +00:00
frosch
8ffb93c358
(svn r16311) -Fix: (Get|Set)TrackBits() is only valid for RAIL_TILE_NORMAL and _SIGNALS.
2009-05-15 16:07:36 +00:00
rubidium
59d45a04d6
(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.
2009-04-21 23:40:56 +00:00
smatz
40745dc0d9
(svn r15704) -Cleanup: remove further includes from recently split files
2009-03-13 23:48:07 +00:00
smatz
7c8474da13
(svn r15642) -Codechange: use a default parameter value in CalcClosestTownFromTile
2009-03-08 01:20:11 +00:00
rubidium
7831346ef8
(svn r15601) -Fix [FS#2615]: bridges/tunnels don't store tram owner making it possible to remove someone's tram tracks.
...
-Feature: allow building road stops on road/tram tracks of competitors.
2009-03-02 22:57:47 +00:00
rubidium
e8dbf62761
(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
032346cf8a
(svn r15452) -Codechange: Add DC_NO_MODIFY_TOWN_RATING.
2009-02-11 18:50:47 +00:00
rubidium
d846eef0b6
(svn r15434) -Codechange: bit of type safety for the DC_xxx flags.
2009-02-09 21:20:05 +00:00
rubidium
c0a8d09ca7
(svn r15428) -Codechange: consistently use colour instead of having both color and colour.
2009-02-09 02:57:15 +00:00
rubidium
377ce6c5bf
(svn r15410) -Cleanup: get rid of most of the references to the 'patches' except where it's used for backward compatability.
2009-02-08 12:25:13 +00:00
rubidium
0cfc402823
(svn r15374) -Codechange: remove a magic constant.
2009-02-06 15:39:34 +00:00
rubidium
09fca459a7
(svn r15335) -Change: use the patch change mechanism to change the road side too instead of a separate command.
2009-02-04 16:09:16 +00:00
smatz
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
2009-01-31 20:16:06 +00:00
smatz
26e5ccb60d
(svn r15039) -Codechange: fix comments regarding old AI, remove one old AI hack
2009-01-12 19:49:23 +00:00
truebrain
a3dd7506d3
(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
rubidium
11da45ee55
(svn r14949) -Cleanup: pointer coding style
2009-01-10 00:31:47 +00:00
rubidium
1357b0a4c2
(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
87e5a8b52b
(svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter.
2008-12-28 14:37:19 +00:00
smatz
07e3c096b3
(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
a14ad77a36
(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
rubidium
d832626bb9
(svn r14491) -Documentation: updates/additions of doxygen docs (Alberth)
2008-10-19 15:39:12 +00:00
rubidium
272b2ef0e9
(svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus)
2008-10-14 18:38:51 +00:00