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
smatz
059e94e355
(svn r12753) -Codechange: do not use IsDepotTypeTile() where simpler function can be used
17 years ago
smatz
9488db56d4
(svn r12745) -Codechange: a bit of naming conventions, introduce Is*DepotTile()
17 years ago
rubidium
e8ee93b593
(svn r12689) -Feature: non-stop(or rather no non-stop) and via orders for road vehicles.
17 years ago
rubidium
570519d79b
(svn r12658) -Codechange: unify a vast portion of the CmdSend<VehicleType>ToDepot commands.
17 years ago
rubidium
62bdc381e7
(svn r12657) -Codechange: add 'FindClosestDepot' to the vehicle class.
17 years ago
frosch
96700d5605
(svn r12629) -Codechange: Split VehicleNeedsService() into Vehicle::NeedsServicing() and Vehicle::NeedsAutomaticServicing().
...
-Fix (r11052): Disable servicing by service-interval if a vehicle has depot orders.
17 years ago
rubidium
f1cd7ef5ee
(svn r12615) -Codechange: rename some enums related to depot orders to make it more clear that they are no loading/unloading flags. Also add more type strictness.
17 years ago
rubidium
c57a1d74c3
(svn r12600) -Codechange: make GetNonStopType return a more augmented type; not is there a non-stop order but the kind of non-stop order, so one doesn't need to check _patches.new_nonstop type everywhere.
17 years ago
rubidium
fb1c4eccd8
(svn r12593) -Codechange: hide Order's flags in most of the code.
17 years ago
rubidium
d6623cf654
(svn r12588) -Codechange: do not access the destination of an order directly.
17 years ago
rubidium
5b47f81b0f
(svn r12584) -Codechange: do not access the order type directly.
17 years ago
rubidium
5eb5889954
(svn r12578) -Codechange: merge the aircrafts ProcessOrder too into the 'unified' ProcessOrder.
17 years ago
rubidium
bdd64495cd
(svn r12575) -Codechange: unduplicate Process*Orders for trains, ships and road vehicles.
17 years ago
frosch
5e5e074a5d
(svn r12540) -Codechange: Enumify some values in original pathfinder and remove an unused variable.
17 years ago
frosch
15a9fba867
(svn r12531) -Codechange: Rename some variables for consistency.
17 years ago
rubidium
ef2be7d0fc
(svn r12490) -Codechange: rename engine.h to engine_func.h and remove unneeded inclusions of engine.h and/or replace them with engine_type.h.
17 years ago
rubidium
2edd403656
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
17 years ago
rubidium
4a1035ab95
(svn r12488) -Codechange: split order.h into order_base.h and order_func.h.
17 years ago
rubidium
eeabab4555
(svn r12459) -Codechange: split news.h into news_type.h and news_func.h.
17 years ago
rubidium
f0538b4b62
(svn r12390) -Fix [FS#1851]: trams failing to turn on bridge heads/tunnel entrances.
17 years ago
peter1138
dda6cab17a
(svn r12209) -Fix: [NewGRF] Support using any base price for rail and road vehicles' running cost, and show running cost of wagons if they have it.
17 years ago
frosch
b7993793c8
(svn r12199) -Codechange: Remove magic around the results of GetTileTrackStatus().
17 years ago
frosch
f5929d413b
(svn r12193) -Codechange: Rename a magic variable, give it a decent type, and remove a 'goto'.
17 years ago
frosch
0e9e94a94b
(svn r12191) -Fix: Do not start overtaking if the RV reaches wrong-way one-way-road in the next tiles.
17 years ago
frosch
43c0f7ea8e
(svn r12141) -Codechange: Introduce IsNormalRoad[Tile](), IsRoadDepot[Tile]() and HasTileRoadType(); and use them.
17 years ago
smatz
a0ddc43e92
(svn r12134) -Change: count the number of ticks a vehicle was running this day to calculate running cost
...
-Fix [FS#1739]: vehicle profit is now counted with 8bit fract, so it is now shown properly in the vehicle details window
17 years ago
smatz
fd51465c8b
(svn r12132) -Cleanup: convert pathfinder selection from if/else to switch/case at many places
17 years ago
smatz
507728f46b
(svn r12129) -Change [FS#1759]: simplified patch settings for pathfinders (Yorick)
17 years ago
frosch
7b9efcea21
(svn r12085) -Fix(r12058): Road vehicles could get stuck, when NPF told them to reverse on junction tiles. (spotted by SmatZ)
17 years ago
belugas
034150c199
(svn r12081) -Codechange: Rename table/roadveh.h to table/roadveh_movment.h
...
It is more descriptive name and it will not upset the generate script anymore
17 years ago
belugas
62b3520e51
(svn r12066) -Codechange: Rename GetBridge for the more common GetBridgeSpec
...
-Codechange: Remove direct access to the _bridge table in favor of the above mentioned GetBridgeSpec
-Codechange: Rationalize the use of Bridge type pointer
17 years ago
glx
525409b0fc
(svn r12037) -Codechange: replace OnNewDay_(Aircraft|RoadVeh|Ship|Train) with an OnNewDay method in the Vehicle class
17 years ago
maedhros
21eef65e77
(svn r11994) -Codechange: Remove numbers from string names where the strings aren't present in TTD, since they don't correspond to either TTD's TextIDs or OpenTTD's StringIDs.
17 years ago
smatz
d6eaf1a11a
(svn r11962) -Cleanup: OPF is no longer used to update signals
17 years ago
smatz
0b888ccc00
(svn r11960) -Cleanup: simplify some IsTunnel(Tile) / IsBridge(Tile) conditions
17 years ago
smatz
1d59439166
(svn r11916) -Codechange: use enums from VehicleViewWindowWidgets instead of constants
...
-Fix: refit button widget was not correctly updated
17 years ago
smatz
ac7bc24b0e
(svn r11882) -Codechange: introduce MarkSingleVehicleDirty() and simplify the code at some places
17 years ago
rubidium
576f8ad93e
(svn r11866) -Codechange: swap OFB_* and OF_* so it conceptually in sync with other cases of *B_* vs *_* like VETSB_* and VETS_*.
17 years ago
rubidium
dc87b05e8c
(svn r11834) -Codechange: only include settings_type.h if needed.
17 years ago
rubidium
cc52a56052
(svn r11830) -Fix [FS#1625]: road vehicles would not wait in line, but at a single point on bridges. Based on a patch by SmatZ.
17 years ago
rubidium
d4e6a6bf57
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
17 years ago
rubidium
853ca6386e
(svn r11825) -Fix (FS#1627): an articulated road vehicle could split up when it turned around at a corner and then would enter a drive through station at the next tile.
17 years ago
peter1138
ab8382c0db
(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
ac528411df
(svn r11818) -Codechange: split player.h into smaller pieces.
17 years ago
rubidium
998d7644f6
(svn r11800) -Codechange: move some functions to a more logical location + some type safety.
17 years ago
rubidium
46650c54b6
(svn r11793) -Codechange: pass the expense type via the CommandCost instead of a global variable. Patch by Noldo (FS#1114).
17 years ago
peter1138
a01fc4c142
(svn r11789) -Codechange: coding style for global variable names
17 years ago
rubidium
0e517fe023
(svn r11787) -Codechange: more header rewrites. This time related to viewport.h.
17 years ago
rubidium
a8a3a7e3f2
(svn r11775) -Codechange: move all autoreplace/autorenew functions to a single location.
17 years ago
rubidium
b0ac283aec
(svn r11774) -Change: do not include variables.h in a header when it is not needed.
17 years ago
peter1138
7be2160cfb
(svn r11770) -Codechange: An engine type's type is EngineID, not byte.
17 years ago
rubidium
e5e75bd8f8
(svn r11719) -Codechange: split sound.h in a header with types and one with functions.
17 years ago
smatz
38f0e422ac
(svn r11707) -Fix: do not allow refitting flooded (destroyed) vehicles
17 years ago
rubidium
384503e7d3
(svn r11706) -Codechange: split vehicle.h and remove another bunch of useless includes.
17 years ago
rubidium
b9046c97fb
(svn r11702) -Codechange: move all date related stuff to date*.
17 years ago
rubidium
2786d789a1
(svn r11701) -Codechange: removal unnecessary inclusions of map.h (and split map.h).
17 years ago
rubidium
429521a7d1
(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
6a9e77e079
(svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
17 years ago
rubidium
9e9cfe6e59
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
17 years ago
rubidium
433a9f3c09
(svn r11675) -Codechange: split the string types from the string functions.
17 years ago
rubidium
5b49e75453
(svn r11669) -Codechange: refactor tile.h -> tile_type.h and tile_map.h
17 years ago
smatz
145517fb8e
(svn r11649) -Codechange: some code can be simplified thanks to changes in r11642
17 years ago
smatz
3cee0abdba
(svn r11644) -Codechange: merge some functions from tunnel_map.h and bridge_map.h into tunnelbridge_map.h
17 years ago
smatz
acf6e08f78
(svn r11642) -Codechange: VehicleFromPos does check for v->tile == tile, so remove useless checks
17 years ago
rubidium
a5bcce4fc8
(svn r11621) -Fix [FS#1525]: there were still some cases where one could not build a tram track, but the tram could become blocked.
17 years ago
rubidium
02c46026b3
(svn r11571) -Fix [FS#1493]: road vehicle getting to the wrong side of a station when trying to overtake in there.
17 years ago
skidd13
82913a2134
(svn r11564) -Codechange: Increase the usage of the for_each_bit macro and rename it fitting to the naming style
17 years ago
rubidium
77b6a2674e
(svn r11524) -Fix [FS#1485]: assertion when tram reversed at a station.
17 years ago
skidd13
bdc7fd2d76
(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
bf959f926f
(svn r11510) -Codechange: merge the IS_*INSIDE* functions and rename them fitting to the naming style
17 years ago
skidd13
a91c2a4c39
(svn r11485) -Codechange: Remove the doubled function ToggleBitT and rename the remaining to fit with the naming style
17 years ago
skidd13
eeaa348f8b
(svn r11484) -Codechange: Remove the doubled function SetBitT and rename the remaining to fit with the naming style
17 years ago
skidd13
5c31a973a1
(svn r11482) -Codechange: Remove the doubled function ClrBitT and rename the remaining to fit with the naming style
17 years ago
skidd13
71c4325c50
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
17 years ago
rubidium
a4df4728fc
(svn r11477) -Fix [FS#1451]: a road vehicle must not show that it is driving max speed when it is standing still waiting for the vehicle in from of it.
17 years ago
skidd13
50bfe1a19d
(svn r11476) -Codechange: rename the function myabs to abs to get rid of an unneeded define
17 years ago
skidd13
8be526e499
(svn r11475) -Codechange: rename clamp and clampu to Clamp and ClampU to fit with the coding style
17 years ago
rubidium
b1393d1169
(svn r11461) -Fix [FS#1449] (r11449): a bus turning around in a station could case an assertion error. Patch by divide.
17 years ago
rubidium
ef6c4c1cdf
(svn r11449) -Fix [FS#1160]: trams could deadlock themselves. As of now trams will turn as roadvehicles do when the player cannot build a tram track piece on the next tile without destroying anything. It will not turn when the player can build the before mentioned track piece on the 'next' tile.
17 years ago
rubidium
04925c3f12
(svn r11419) -Fix [FS#1388]: articulated vehicle breaking up when making a 90 degree turn immediately after a 180 degree turn.
17 years ago
truelight
9f319318b4
(svn r11385) -Fix r11383: bool operation can be hard to translate for some people ;) (tnx fjb for noticing this bug ;))
17 years ago
truelight
4b8aaa994c
(svn r11383) -Codechange: fixed all the mess around KillFirstBit (tnx to Rubidium and skidd13)
17 years ago
truelight
69b1d97c03
(svn r11382) -Codechange: renamed COUNTBITS to CountBits, as it is no longer a macro (skidd13)
17 years ago
rubidium
6fe325ae7f
(svn r11367) -Fix [FS#1258]: non-articulated road vehicles should be able to overtake (not-too-long) articulated vehicles, i.e. overtaking of articulated vehicles that are several (3+) tiles long is not supported.
17 years ago
rubidium
3a7c8cc88d
(svn r11366) -Fix [FS#1258]: road vehicles must not drive through eachother on bridges/in tunnels.
17 years ago
rubidium
4bb210614b
(svn r11332) -Fix: vehicles getting a value of 0 on construction.
...
-Fix: assertion when selling vehicles.
17 years ago
rubidium
28bcf5bb46
(svn r11317) -Fix [FS#1355]: don't read a variable of a destroyed vehicle as the value will be reset to 0.
17 years ago
rubidium
b6c9bc80cf
(svn r11229) -Fix [FS#1307]: one could sell vehicles that were crashed in a depot, which would still yield money.
17 years ago
rubidium
07f8b91a18
(svn r11200) -Fix [FS#1291]: road vehicles could not overtake on one way roads going to the east.
17 years ago
rubidium
127c7c9b0f
(svn r11173) -Codechange: rename some callback enums so they are more uniform.
17 years ago
rubidium
257fdb38e6
(svn r11122) -Fix [FS#1234]: crash when building a NewGRF vehicle when the articulated build vehicle callback returneed a different value for the purchase window than the normal build. Thanks for Dalestan and _minime_ for pointers to possible causes.
17 years ago
rubidium
9da9e77641
(svn r11120) -Codechange: remove the arbitrary limit of 10 articulated parts for a vehicle.
17 years ago
rubidium
38ff181ebf
(svn r11072) -Fix [FS#1045]: when a vehicle had a service order, the goto-depot button did not make it possible to stop the vehicle at that depot.
17 years ago
rubidium
56ab253307
(svn r11031) -Codechange: reduce the amount of duplication of bit counting functions. Based on patches by skidd13, SmatZ and Belugas.
17 years ago
rubidium
2c8e50f20c
(svn r11017) -Codechange: unify determining whether a vehicle needs/can be service a little more.
17 years ago
rubidium
aba867d78d
(svn r11011) -Fix [FS#1129]: GetFirstVehicleInChain did change the game state while being marked const.
...
-Codechange: do not brute force determine the first vehicle in the chain or previous vehicle, but do it by properly accounting the previous and first pointers when updating the next pointer. This gives a performance increase of about 15% when there are a lot of vehicles in the game.
17 years ago
rubidium
cb7eaff353
(svn r11003) -Codechange: replace Vehicle->next to Vehicle->Next() and Vehicle->SetNext() so we can trap instances that change a next pointer and (in the future) update the first/previous pointers based on that.
17 years ago
rubidium
a407d53d1b
(svn r11001) -Codechange: unify the way to determine whether a vehicle is in a depot.
17 years ago
rubidium
a83ccad6bd
(svn r10983) -Codechange: use vehstatus & VS_CRASHED instead of some other "methods" custom to each vehicle to determine whether the vehicle is crashed.
17 years ago
rubidium
8a86526d05
(svn r10974) -Fix [FS#1144, FS#1155]: road vehicles that could not (properly) use a road stop still tried to go to that road stop.
17 years ago
maedhros
e4d318addc
(svn r10924) -Fix [FS#1120]: VS_STOPPED is only set for the front part of an articulated
...
road vehicle, so don't check any other parts when testing if the vehicle is
stopped inside a depot.
17 years ago
bjarni
a973c893fb
(svn r10823) -Fix r8610 [FS#1097]: the autoreplace window vehicle count didn't always update correctly) (Matthias)
17 years ago
rubidium
a7e37d8592
(svn r10814) -Fix [FS#1103]/Codechange: allow trams to be reverse manually, even though there is no track to do so.
17 years ago
maedhros
e0e361c890
(svn r10812) -Fix (r10097) [FS#1093]: Make RoadVehicle::MarkDirty() mark all parts of articulated vehicles as dirty, not just the front.
17 years ago
maedhros
8c4a4baac1
(svn r10811) -Fix (r10097): Refit all the parts of an articulated road vehicle, not just the first part.
17 years ago
maedhros
68abeed9b8
(svn r10809) -Fix (r10097): When reversing, articulated parts of road vehicles should not attempt to do their own pathfinding.
17 years ago
rubidium
836105864c
(svn r10770) -Codechange: use the pool item class as super class for the vehicle struct.
...
-Codechange: do not force "special" vehicles to be allocated in the low 1024 vehicle slots and non "special" vehicles in the rest of the slots.
17 years ago
rubidium
7fb3f54584
(svn r10733) -Codechange: change MP_STREET into MP_ROAD as we use the word "road" everywhere except in the tile type.
17 years ago
rubidium
5bd241eb5b
(svn r10697) -Codechange: give a more sensible names to some of the unkX variables.
17 years ago
rubidium
0d9a51de6d
(svn r10672) -Codechange: typify some parameters/variables.
17 years ago
rubidium
efc7fdf2fd
(svn r10587) -Codechange: move the string/dparam related stuff from variables.h to strings.h
17 years ago
rubidium
b876be0064
(svn r10493) -Codechange: update some callback ID enums to reflect their changed usage, add a few and update the comments.
18 years ago
rubidium
90f85c957a
(svn r10409) -Codechange: replace (Aircraft|RoadVeh|Ship|Train)_Tick with a Tick method in the Vehicle class.
18 years ago
rubidium
83a880c882
(svn r10408) -Codechange: make GetImage a class method of Vehicle instead of Get(Aircraft|RoadVeh|Ship|Train)Image.
18 years ago
peter1138
de357c74c1
(svn r10363) -Fix [FS#911]: invalidating autoreplace windows didn't take account of vehicle group (Matthias Wolf)
18 years ago
matthijs
a0a9a7f3cd
(svn r10345) -Fix [FS#290]: Make OPF handle coming out of a tunnel as well as going into a tunnel, to support road vehicles looking back when finding a depot while in a tunnel.
...
-Fix [FS#290]: Make NPF look back when finding a depot for road vehicles.
18 years ago
maedhros
fb284a9264
(svn r10335) -Fix (r10331): Increment the current order index *after* using it in UpdateVehicleTimetable.
18 years ago
rubidium
117368a5a9
(svn r10287) -Fix (r10266): some surprises from that (almost always) complaining compiler...
18 years ago
rubidium
e5c352818d
(svn r10266) -Codechange: keep track of the origin, time of travel and accumulated feeder share (transfers) of individual pieces of cargo. This means that cargo isn't thrown on a big pile when it's put in a station or unloaded at a station, however the GUI does not reflect these changes yet so you will not actually see it.
18 years ago
maedhros
cf0118ee63
(svn r10236) -Feature: Introduce a form of timetabling for vehicles.
18 years ago
rubidium
2ee73b50b8
(svn r10208) -Codechange: replace int32 with Money where appropriate.
18 years ago
rubidium
49220cc6f1
(svn r10205) -Codechange: refactor returning of cost, so it can be more easily modified.
18 years ago
rubidium
966e2738b9
(svn r10197) -Codechange: replace int32 with CommandCost where appropriate.
18 years ago
maedhros
12be876131
(svn r10122) -Codechange: Add a CountBitsSet function and use it to replace some less efficient loops.
18 years ago
peter1138
78d797a6b7
(svn r10111) -Codechange: Add new vehicle hash table for collision detection and finding vehicles on a tile. The hash area scanned is far smaller than the old hash table, which is now used for viewport updates only. This should give a significant performance improvement for games with many vehicles. (Based on work by 'B. N. SmatZ!' and 'madman2003')
18 years ago
maedhros
3e326085fa
(svn r10097) -Feature: Add support for articulated road vehicles, or callbacks 11 and 17 for
...
road vehicles for those who prefer the technical explanation.
18 years ago
rubidium
a752c73469
(svn r10029) -Fix (r9923): trams should not/cannot turn on roadworks.
18 years ago
glx
9f60f2ecbb
(svn r10012) -Fix (r9999): crash when forcing road vehicles to turn
18 years ago
rubidium
b2cd8f3631
(svn r10003) -Fix (r9999): crash when vehicle had to turn on a bridge.
18 years ago
rubidium
59c51f9fce
(svn r10002) -Fix (r9999): don't try to get the disallowed directions from a road depot...
18 years ago
rubidium
253aa1b0b0
(svn r9999) -Feature: make it possible to disallow busses and lorries to go a specific way on straight pieces of road.
18 years ago
rubidium
2bfc36c1ba
(svn r9989) -Fix [FS#817]: trams/road vehicles did go to the closest road stop regardless whether they could actually "drive" on there.
18 years ago
bjarni
c346cc430a
(svn r9941) -Fix: trams could be cloned to appear in normal road depots and vice versa (spotted by Desolator)
18 years ago
rubidium
afaa6062cb
(svn r9927) -Fix: assert triggered when letting a tram run into the wrong side of a depot.
18 years ago
rubidium
56dc5c5938
(svn r9924) -Fix: update the road vehicle speeds when stopped and/or running just behind another vehicle.
18 years ago
rubidium
17390241e6
(svn r9923) -Add: support for Action 0 Road vehicles, property 1C, bit 0.
18 years ago
rubidium
d234e97f8b
(svn r9919) -Codechange: prepare some more places for more road types.
18 years ago
rubidium
0819f3a9a0
(svn r9917) -Codechange: prepare some more areas for more road types.
18 years ago
rubidium
440d723d84
(svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple road types on a single tile.
18 years ago
rubidium
42f920964b
(svn r9833) -Fix: also 'leave' the station when leaving for automatic servicing.
18 years ago
peter1138
1d5135830a
(svn r9828) -Codechange: [NewGRF] Add support for changing cargo capacity with callback 36. This is set on construction for ships and roadvehicles, and whenever carriages are attached for trains.
18 years ago
rubidium
2efecd34c4
(svn r9808) -Codechange: unify the Handle<VehicleType>Loading functions.
18 years ago
peter1138
4591fb5b0d
(svn r9806) -Codechange: [NewGRF] Add callback 36 support for purchase cost, for all vehicle types.
18 years ago
rubidium
abbaa1691e
(svn r9794) -Codechange: refactor the question whether a vehicle can be loaded into LoadUnloadVehicle instead of duplicating it for each vehicle.
18 years ago
rubidium
981bf52bdd
(svn r9770) -Codechange: perform the payment of cargo when loading/unloading, but when arriving at the station.
18 years ago
rubidium
a4e045a3fb
(svn r9760) -Codechange: remove the need for saving some vehicle variables.
18 years ago
rubidium
ec9ac99d01
(svn r9755) -Codechange: refactor some more of the begin loading stuff.
18 years ago
rubidium
202009522c
(svn r9754) -Codechange: make classes for all vehicle types, so we can make nicer/better maintainable code, i.e. virtual methods instead of switches.
18 years ago
rubidium
6440440f12
(svn r9752) -Codechange: remove some duplication related to BeginLoading.
18 years ago
maedhros
02e770ff2c
(svn r9742) -Fix (r9689) [FS#739]: Fix cloning with refit costs again, hopefully for good this time.
18 years ago
truelight
347bfc7f9f
(svn r9740) -Fix [FS#709]: removed wrong assert() that could be triggered by removing an order at the wrong moment
18 years ago
maedhros
034f3591cf
(svn r9685) -Fix (r9683): Call v->LeaveStation() when a vehicle in a station is sent to a depot.
18 years ago
rubidium
80c259f64f
(svn r9672) -Cleanup: lots of coding style fixes around operands.
18 years ago
belugas
addcae43fa
(svn r9664) -Documentation: Doxygen corrections,errors and omissions
18 years ago
maedhros
ccaaa7d33a
(svn r9609) -Codechange: Move some function prototypes out of functions.h and into landscape.h, and add a few where they didn't exist.
18 years ago
maedhros
eae03e0f72
(svn r9543) -Fix [FS#691]: Split up STR_ENGINE_NOT_BUILDABLE into four strings so it can be
...
translated properly and remove "buildable", since it isn't actually a word.
18 years ago
belugas
386e298acd
(svn r9523) -Cleanup: doxygen changes. Time to take care of "R"
18 years ago
belugas
06d3669bb5
(svn r9400) -Codechange: Use some more representative enum names for landscape types.
18 years ago
peter1138
ae48a7447b
(svn r9303) -Codechange: Use cargo class when counting passengers in a road vehicle crash, and when loading aircraft.
18 years ago
peter1138
e485b8f694
(svn r9301) -Codechange: Use cargo class to determine if a road vehicle can stop in bus or truck stops.
18 years ago
peter1138
92486ac980
(svn r9259) -Codechange: NUM_CARGO isn't a valid cargo type...
18 years ago
bjarni
c2b7d0192d
(svn r9072) -Codechange: [Orders] added methods to orders to free them and check if they are in use
18 years ago
rubidium
ce919e8c71
(svn r9068) -Codechange: capitalize the VEH_Train etc. enums to match the coding style (and rest of the code).
18 years ago
rubidium
24c4d5b06d
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
18 years ago
rubidium
36bb92ae24
(svn r9050) -Codechange: Foo(void) -> Foo()
18 years ago
maedhros
469fbc912c
(svn r8946) -Feature: [NewGRF] Add support for vehicle variables 0xFE and 0xFF bit 10,
...
which is set when a vehicle was built during the exclusive testing phase.
18 years ago
maedhros
aadd8a4b44
(svn r8945) -Codechange: Rename v->load_status to v->vehicle_flags so it can be used for more than just the gradual loading status.
18 years ago
tron
1ce43c1a37
(svn r8897) -Fix
...
Change the signature of GetNewVehiclePos():
-void GetNewVehiclePos(const Vehicle *v, GetNewVehiclePosResult *gp);
+GetNewVehiclePosResult GetNewVehiclePos(const Vehicle *v);
18 years ago
tron
12b1804d4e
(svn r8884) -Fix
...
Replace SetSpeedLimitOnBridge() by something simpler
18 years ago
rubidium
433b8054e9
(svn r8868) -Fix (r8715): road vehicles could not overtake anymore in some directions (mart3p).
18 years ago
rubidium
0e8f006dc1
(svn r8735) -Feature: drive-through road stops made possible by the hard work of mart3p.
18 years ago
rubidium
447b16930e
(svn r8730) -Codechange: more replacements of magic numbers by enums and removal of some (by now) redundant comments.
18 years ago
rubidium
ecfbfbd98c
(svn r8726) -Codechange: bools are 1 or 0 according to the C++ standard and refactor RoadStop::AllocateBay to remove a loop condition. Suggestions by Tron.
18 years ago
rubidium
f3dc5596ad
(svn r8725) -Fix (r8712): test the first bit of the bitmask, not the nth, as we are shifting the bitmask.
18 years ago
rubidium
59284954ae
(svn r8723) -Codechange: replace yet another couple of magic numbers with enums.
18 years ago
rubidium
f7783212b1
(svn r8721) -Fix (8715): road vehicles could not turn around properly
18 years ago
rubidium
154dff9873
(svn r8715) -Codechange/cleanup: replace magic numbers related to state of road vehicles with enums. Original patch by mart3p.
18 years ago
rubidium
86a4b5e169
(svn r8712) -Codechange/cleanup: replace 'magic' constants with enums, use proper types instead of byte, uint etc., give variables more descriptive names and add some comments.
18 years ago
rubidium
a419f4aeda
(svn r8698) -Codechange: enumify the returns of VehicleEnterTile
18 years ago
rubidium
eab6dd9898
(svn r8694) -Codechange: make RoadStop's status accessible via accessor functions.
18 years ago
rubidium
3b0e00e2f9
(svn r8692) -Cleanup: add comments to RoadVehController. Patch by mart3p.
18 years ago
bjarni
80125fd934
(svn r8610) -Codechange/Feature: rewrote the list handling in the autoreplace window
...
-The user will notice the following changes:
All vehicle types behaves in the same way
Adding/removing an engine (new design and so on) can no longer result in the window selecting a new engine
All valid replacements will be displayed since it looks at refitting options as well (this solves the missing ships with the newships GRF)
Since you can't replace an engine into itself, the engine selected in the left list will no longer appear in the right list
-The code changes:
Instead of looping all engines all the time, each list generates a list like the build windows
This ensures consistent list generation since only one function can loop all engines
Unified code for all vehicle types
It now use the lists to call the drawing code in the build vehicle window
Works on selected EngineIDs instead of selected index in the list
18 years ago
rubidium
2918fab68d
(svn r8609) -Fix: a road vehicle that is very close after another (slower) road vehicle gets its speed reset to 0 when entering a tunnel, which causes a traffic jam outside of the tunnel.
18 years ago
tron
c326ff3795
(svn r8550) -Fix
...
Building a vehicle does not involve allocating orders, so do not check whether orders could be allocated
18 years ago
tron
e0a46a08e9
(svn r8538) -Fix
...
GetRoadStopByTile() cannot return NULL. Remove therefore unnecessary check
18 years ago
celestar
22dc618582
(svn r8536) -Fix (FS#577): Road Vehicles now can obtain a slot even if the station is very spread out
18 years ago
tron
f5b41a2fbb
(svn r8474) -Fix
...
Turn GetPrimaryRoadStop() into a method of struct Station
18 years ago
tron
e0df42b3a3
(svn r8425) -Fix
...
Do not try to invalidate a window which just got deleted. It is pointless
18 years ago
tron
8a70d42603
(svn r8424) -Fix
...
Do not call ClearSlot() just before calling DeleteVehicle(), which does it too
18 years ago
celestar
b0a0086e7c
(svn r8402) -Codechange: Move RoadStop-specific enums to the RoadStop class, and changed a one-member enum into a static const. Simplify their naming and add some doxygen-comments to RoadStop
18 years ago
peter1138
92d418b031
(svn r8128) -Codechange: Split sprite and palette remap into separate 32 bit values.
...
This lets us increase the sprite width from 14 to up to 29 bits,
effectively nulling the old sprite limit. Table changes in next commit.
18 years ago
KUDr
9bfb3f08d9
(svn r8110) -Codechange: direct Vehicle::current_order.type changes (to OT_LOADING and OT_LEAVESTATION) replaced by v->BeginLoading() and v->LeaveStation() calls. This should allow easy hooking of those state transitions in order to maintain vehicle loading queue.
18 years ago
rubidium
f35ed4bbc2
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
18 years ago
KUDr
e373ea7096
(svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
18 years ago