rubidium
cfc2c5db42
(svn r22699) -Fix [FS#4681]: Cost of adding an extra road type to a bridge or tunnel was undercalculated (adf88)
13 years ago
frosch
8f921c8747
(svn r22516) -Codechange: Replace some magic numbers with the appropiate enum values. (Eddi)
14 years ago
alberth
28092366ec
(svn r22459) -Doc: Typo fixes and doxygen markup improvements.
14 years ago
rubidium
5a620d1c65
(svn r22406) -Document: some more "random-ish" tidbits
14 years ago
planetmaker
914f8e9f1d
(svn r22080) -Doc: Add doxygen comments to a few functions and improve a few existing comments
14 years ago
rubidium
bc3ce1e53b
(svn r22018) -Cleanup: remove some (now) unneeded includes of functions.h
14 years ago
rubidium
4eb4aad54f
(svn r21765) -Fix [FS#4369]: PBS reservation was not shown on road crossings with NewGRF railtypes (andythenorth)
14 years ago
yexo
bd379e283f
(svn r20728) -Codechange: shuffle some code in CMD_BUILD_ROAD so it doesn't call CMD_LANDSCAPE_CLEAR in test-mode from exec-mode
14 years ago
rubidium
30f2afac9b
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
14 years ago
frosch
ed4f806f1d
(svn r20283) -Codechange: Unify start of doygen comments.
14 years ago
rubidium
e356cb9405
(svn r20281) -Codechange: unify case scope closure + break coding style
14 years ago
rubidium
cfdcb6cbee
(svn r20230) -Fix [FS#3961]: road vehicles could be dead locked with one way roads. This allows one wayness to be removed if there are vehicles on a tile; it does not allow you to add one wayness to roads that have vehicles on them as it makes turning vehicles jump
14 years ago
alberth
43b4d23b07
(svn r20215) -Fix [FS#3971]: Remove all road pieces rather than aborting at the first ownership error (Krille).
14 years ago
rubidium
b8487afe54
(svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :)
14 years ago
rubidium
73527b7b45
(svn r20190) -Codechange: unVARDEF _generate_world and move it to genworld
14 years ago
terkhen
40e58f78ba
(svn r20113) -Add [FS#3895]: Show an specific error message when trying to remove nonexistant roads (Krille).
14 years ago
terkhen
f363f64c51
(svn r20099) -Fix [FS#3882]: Give priority to ownership errors while removing roads.
14 years ago
alberth
82fc340a0a
(svn r20097) -Codechange: Share constant bitset of safe level crossing slopes.
14 years ago
michi_cc
34f32cbbf4
(svn r20049) -Feature: [NewGRF] Add a railtype flag to disallow level crossings per railtype.
14 years ago
rubidium
b1d60d66cf
(svn r20036) -Fix [FS#3911]: tram tracks didn't show at level crossing with the new railtypes
14 years ago
yexo
9cfb61adf5
(svn r20003) -Feature [FS#3886]: [NewGRF] var 43 depot build date for railtypes
14 years ago
rubidium
93ff7d78e1
(svn r19799) -Change: give depots an unique name in the same manner buoys and waypoints are named
15 years ago
rubidium
fe71d4fc99
(svn r19791) -Change: use the typed FOR_EACH_SET_BIT for RoadTypes (adf88)
15 years ago
frosch
75d4bc947d
(svn r19654) -Codechange: Use Extract<> in more places.
15 years ago
frosch
b76f0185d4
(svn r19616) -Codechange: Increase transparency of 'Extract' by passing also the number of used bits.
15 years ago
smatz
0ef33548c2
(svn r19614) -Codechange: "it's" => "its" where appropriate
15 years ago
alberth
05d705e077
(svn r19494) -Codechange: Remove _error_message.
15 years ago
alberth
b714160fcc
(svn r19491) -Codechange: Keep track of last error in CmdRemoveLongRoad().
15 years ago
frosch
7bf13ea692
(svn r19436) -Fix: With certain game settings one could clear tiles for free when building long roads.
15 years ago
peter1138
604da97364
(svn r19434) -Add: Add rail speed limit to land area information window.
15 years ago
alberth
05e549ccdc
(svn r19420) -Codechange: Don't use _error_message to keep track of success/failure, use a had_success boolean.
15 years ago
alberth
3b367ab708
(svn r19415) -Codechange: Forward CommandCost with an error back to the caller.
15 years ago
alberth
5e7c4398ae
(svn r19412) -Codechange (r9942): One pair of parentheses is enough.
15 years ago
alberth
7cc68f493d
(svn r19405) -Codechange: CheckOwnership() returns a CommandCost.
15 years ago
alberth
7e1a91db21
(svn r19402) -Codechange: CheckAllowRemoveRoad() returns a CommandCost.
15 years ago
alberth
6b6ff9c52b
(svn r19400) -Codechange: CheckforTownRating returns a CommandCost.
15 years ago
alberth
40f106ba7c
(svn r19372) -Codechange: CheckTileOwnership() returns a CommandCost.
15 years ago
alberth
c395b93acd
(svn r19319) -Codechange: EnsureNoVehicleOnGround() returns a CommandCost.
15 years ago
alberth
63dd6ce6b0
(svn r19291) -Codechange: Rename HasVehicleOnTunnelBridge() to TunnelBridgeIsFree() and return a CommandCost status.
15 years ago
smatz
1ad5e1cece
(svn r19249) -Fix [FS#3642](r18803): start and end tiles were swapped in CMD_REMOVE_LONG_ROAD
15 years ago
alberth
e8d40d6a19
(svn r19128) -Codechange: CommandCost cost methods return void instead of a copy of *this.
15 years ago
peter1138
898e879bd9
(svn r19056) -Add: [NewGRF] Action 3/2/1 (i.e. new graphics) support for rail types. (To be documented...)
15 years ago
smatz
d62d0ac489
(svn r19019) -Codechange: use HasExactlyOneBit() and HasAtMostOneBit() instead of CountBits() where possible
15 years ago
terkhen
9cf602c7c1
(svn r19016) -Fix [FS#3591]: When removing roads, the player was also charged for removing the foundations.
15 years ago
terkhen
b02a522038
(svn r18986) -Fix (r18803): Make building long roads fail for AIs if there is an obstacle in the way.
15 years ago
frosch
5f4f562d53
(svn r18975) -Cleanup: CMD_REMOVE_ROAD is unused.
15 years ago
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.
15 years ago
rubidium
f94c83a387
(svn r18872) -Codechange: introduce PaletteID and use it
15 years ago
rubidium
4d93b704d9
(svn r18866) -Codechange: remove the CmdFailed(ret)/CmdSucceeded(ret) wrapper functions
15 years ago
frosch
24e0945bc4
(svn r18846) -Codechange: Merge DrawTileSeq into DrawCommonTileSeq.
15 years ago
frosch
2e9529aff3
(svn r18840) -Codechange: Use DrawCommonTileSeq[InGUI] for roaddepot drawing.
15 years ago
rubidium
82fc28f77f
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
15 years ago
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.
15 years ago
belugas
1335914ec8
(svn r18798) -Codechange: Simplify use of parameter p2 by using the data it is represeting. Based on work by Terkhen
15 years ago
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
15 years ago
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.
15 years ago
peter1138
7b136d1fdd
(svn r18509) -Codechange (r2515,r2753): Data for drawing single_x/y rail pieces was inverted.
15 years ago
rubidium
9426f2b173
(svn r18379) -Codechange: move the cache updating function to its own header to reduce the include 'pathfinder' dependencies
15 years ago
rubidium
f52e27c688
(svn r18364) -Codechange: move the pathfinders and their related files into a separate directory
15 years ago
frosch
1725a73700
(svn r18295) -Fix [FS#bigos](r18283): Missed one PR_TERRAFORM.
15 years ago
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.
15 years ago
rubidium
860b9b1cea
(svn r18028) -Codechange: unglobalise some functions
15 years ago
frosch
ba1fc280e3
(svn r18005) -Codechange: Convert the Prices struct into an array and an enum.
15 years ago
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
15 years ago
rubidium
ca91a97826
(svn r17579) -Fix: remove doxygen docs for removed parameters, or change @param to @tparam if necessary
15 years ago
rubidium
e8ddf001c8
(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos
15 years ago
rubidium
04d5b67eb6
(svn r17567) -Fix: some doxygen warnings
15 years ago
rubidium
860a538adc
(svn r17495) -Codechange: replace 'Depot::Get(GetDepotIndex(tile))->index' with GetDepotIndex(tile)
15 years ago
rubidium
55ddce8da2
(svn r17493) -Codechange: store the depot index on the map
15 years ago
rubidium
bb94724a09
(svn r17492) -Codechange: don't store the town index for road depots.
15 years ago
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 :)
15 years ago
rubidium
6b2ff71e2c
(svn r17363) -Fix [FS#3163] (r16717): feed autoreplace the front of vehicles, otherwise it gets distracted and bails out
15 years ago
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
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
15 years ago
rubidium
1fe3ad3288
(svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives
15 years ago
smatz
47b111449b
(svn r17071) -Fix: give a better error message when trying to make road one-way when it doesn't belong to you
15 years ago
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?
15 years ago
smatz
59f94619c7
(svn r16746) -Codechange: use Town::PostDestructor() instead of not very clean construct for invalidating nearest town for road tiles
15 years ago
smatz
50b5678e26
(svn r16673) -Codechange: rename GetProducedCargo() to AddProducedCargo() and change its behaviour accordingly
15 years ago
frosch
c4418d243a
(svn r16669) -Cleanup (r1): Only animated tiles are... animated.
15 years ago
smatz
e6a165881c
(svn r16664) -Codechange: move house-related stuff from town.h and town_type.h to separate files
15 years ago
smatz
c0ac230e3e
(svn r16660) -Codechange: get rid of more dummy tile_type_procs
15 years ago
smatz
c30a87758f
(svn r16659) -Codechange: rename GetAcceptedCargo() to AddAcceptedCargo() and change its behaviour accordingly
...
-Codechange: remove dummy GetAcceptedCargo_*() handlers
15 years ago
smatz
05c695a647
(svn r16646) -Codechange: rename GetDepotByTile() to Depot::GetByTile()
15 years ago
smatz
0c10006907
(svn r16527) -Codechange: use static member functions instead of simple casts when converting Vehicle to specialised vehicle types. Includes safety check
16 years ago
alberth
bab70a823d
(svn r16491) -Codechange: Added parentheses around bitwise operators for code style.
16 years ago
smatz
5a463c8347
(svn r16442) -Codechange: use new Vehicle accessors at more places
16 years ago
rubidium
7a37220881
(svn r16390) -Codechange: move u.road to RoadVehicle.
16 years ago
smatz
62a7948af0
(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
871107f529
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
16 years ago
frosch
8ffb93c358
(svn r16311) -Fix: (Get|Set)TrackBits() is only valid for RAIL_TILE_NORMAL and _SIGNALS.
16 years ago
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.
16 years ago
smatz
40745dc0d9
(svn r15704) -Cleanup: remove further includes from recently split files
16 years ago
smatz
7c8474da13
(svn r15642) -Codechange: use a default parameter value in CalcClosestTownFromTile
16 years ago
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.
16 years ago
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..
16 years ago
frosch
032346cf8a
(svn r15452) -Codechange: Add DC_NO_MODIFY_TOWN_RATING.
16 years ago
rubidium
d846eef0b6
(svn r15434) -Codechange: bit of type safety for the DC_xxx flags.
16 years ago
rubidium
c0a8d09ca7
(svn r15428) -Codechange: consistently use colour instead of having both color and colour.
16 years ago
rubidium
377ce6c5bf
(svn r15410) -Cleanup: get rid of most of the references to the 'patches' except where it's used for backward compatability.
16 years ago
rubidium
0cfc402823
(svn r15374) -Codechange: remove a magic constant.
16 years ago
rubidium
09fca459a7
(svn r15335) -Change: use the patch change mechanism to change the road side too instead of a separate command.
16 years ago
smatz
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
smatz
26e5ccb60d
(svn r15039) -Codechange: fix comments regarding old AI, remove one old AI hack
16 years ago
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
16 years ago
rubidium
11da45ee55
(svn r14949) -Cleanup: pointer coding style
16 years ago
rubidium
1357b0a4c2
(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
87e5a8b52b
(svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter.
16 years ago
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
16 years ago
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)
16 years ago
rubidium
d832626bb9
(svn r14491) -Documentation: updates/additions of doxygen docs (Alberth)
16 years ago
rubidium
272b2ef0e9
(svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus)
16 years ago
rubidium
3b798599b6
(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
smatz
54d1b49981
(svn r14316) -Fix: do not allow building road over level crossings and drive-through road stops in the wrong direction even when the roadtype is present
16 years ago
smatz
c4d49dfc21
(svn r14315) -Fix: allow adding roadtypes only to drive-through road stops
16 years ago
smatz
d5ca29a5ab
(svn r14314) -Fix: pay for two road bits when adding/removing roadtype at drive through road stop/level crossing
16 years ago
smatz
37edc141e2
(svn r14293) -Change: do not show PBS track reservation in the intro game
16 years ago
rubidium
9474db5cb6
(svn r14258) -Codechange: rework the way to query the vehicle hash to make sure it always results in the same irregardless of the order of the hash-linked-list.
...
-Fix: desync in PBS reservation following, vehicle flooding and road vehicle overtake/follow code.
16 years ago
smatz
e840aabf8d
(svn r14176) -Fix: better 'safe' than ... 'save'
16 years ago
rubidium
ad4fdb76fc
(svn r13931) -Codechange [YAPP]: Retain the reservation state when building/removing waypoints or level crossings. (michi_cc)
16 years ago
rubidium
df99103a31
(svn r13927) -Add [YAPP]: Draw reserved tracks darker, toggeld by a patch setting. (michi_cc)
16 years ago
rubidium
64833bb84f
(svn r13824) -Fix (r13822): also make sure a tile is a road stop tile before trying to get information about the roadstop...
16 years ago
rubidium
3a706b0f2d
(svn r13822) -Fix [FS#2166]: building through the wrong side of a drive through station was allowed.
16 years ago
rubidium
d06529ef4d
(svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line with all other structs/classes that are in a pool.
16 years ago
rubidium
47933d2ddb
(svn r13621) -Fix: building roadbits in the wrong direction on bridges or building roadbits from underneath the bridge to the bridgehead is impossible, so don't silently ignore that error when building over houses and industries is not ignored.
17 years ago
glx
0c1d792d5e
(svn r13379) -Fix (r13255): drive side can't be changed in intro
17 years ago
rubidium
923e21129c
(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
rubidium
8c9cc415e3
(svn r13255) -Codechange: move _opt to _settings.
17 years ago
rubidium
4625695653
(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
rubidium
5fa0946c08
(svn r13242) -Codechange: remove _opt_ptr.
17 years ago
frosch
ca30288c9d
(svn r13234) -Fix: Check/affect town rating when removing/bulldozing town-owned road under drivethrough stops.
...
-Fix: Reset the 'town-owned-road'-flag when removing and rebuilding road under drivethrough stops.
17 years ago
frosch
6e7a7412cd
(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
frosch
eca692ef90
(svn r13206) -Feature(ette): Display all owners of a tile in the tile-info-window.
17 years ago
rubidium
2e25df3ddf
(svn r13166) -Codechange: CmdSetRoadDriveSide belongs in road_cmd.cpp, not settings_gui.cpp.
17 years ago
smatz
ec627dedf8
(svn r13090) -Codechange: add functions for direct conversion from DiagDirection to Track and Trackbits
17 years ago
smatz
386a3f1d20
(svn r13016) -Codechange: unify the detection if rail catenary should be drawn
17 years ago
rubidium
d03994098b
(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
fc60ef874d
(svn r12919) -Fix [FS#1965]: flood road tiles even when there are road works in progress
17 years ago
rubidium
dce1b33196
(svn r12857) -Fix [FS#1948]: remove the last uses of AutoPtr in the station code.
17 years ago
rubidium
6939569362
(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
b139756e2b
(svn r12804) -Codechange: move the effect vehicle handling out of vehicle.cpp
17 years ago
rubidium
181b36ca0b
(svn r12801) -Codechange: remove the dependency of function.h in town_map.h
17 years ago
rubidium
b1d1a4ac66
(svn r12757) -Codechange: move all cheat related stuff from all over the place to a single location.
17 years ago
rubidium
02cdf01507
(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
rubidium
372830b731
(svn r12682) -Fix [FS#1920]: removing road pieces from a town gave you twice the intended penalty.
17 years ago
rubidium
b0ca38e20a
(svn r12622) -Fix: infinite loop in case your compiler decides that enums are unsigned by default. Patch by Dominik.
17 years ago
smatz
b78e8f82e1
(svn r12569) -Cleanup: variable scope and coding style in road*.cpp
17 years ago
smatz
febc5150c9
(svn r12547) -Feature: invisibility options to make objects invisible instead of transparent
17 years ago
rubidium
63ab877c27
(svn r12443) -Add: OpenTTDs version to openttd.cfg, just so we do not need to keep to ask people for their version number because it's likely they give you the wrong answer anyway.
17 years ago
skidd13
2405ffd855
(svn r12442) -Feature: Allow build leveled roads on slopes for the old ai
17 years ago