Commit Graph

268 Commits (cf0cfb908f02ca54efd5956f11909514de062015)

Author SHA1 Message Date
rubidium a752c73469 (svn r10029) -Fix (r9923): trams should not/cannot turn on roadworks. 17 years ago
glx 9f60f2ecbb (svn r10012) -Fix (r9999): crash when forcing road vehicles to turn 17 years ago
rubidium b2cd8f3631 (svn r10003) -Fix (r9999): crash when vehicle had to turn on a bridge. 17 years ago
rubidium 59c51f9fce (svn r10002) -Fix (r9999): don't try to get the disallowed directions from a road depot... 17 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. 17 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. 17 years ago
bjarni c346cc430a (svn r9941) -Fix: trams could be cloned to appear in normal road depots and vice versa (spotted by Desolator) 17 years ago
rubidium afaa6062cb (svn r9927) -Fix: assert triggered when letting a tram run into the wrong side of a depot. 17 years ago
rubidium 56dc5c5938 (svn r9924) -Fix: update the road vehicle speeds when stopped and/or running just behind another vehicle. 17 years ago
rubidium 17390241e6 (svn r9923) -Add: support for Action 0 Road vehicles, property 1C, bit 0. 17 years ago
rubidium d234e97f8b (svn r9919) -Codechange: prepare some more places for more road types. 17 years ago
rubidium 0819f3a9a0 (svn r9917) -Codechange: prepare some more areas for more road types. 17 years ago
rubidium 440d723d84 (svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple road types on a single tile. 17 years ago
rubidium 42f920964b (svn r9833) -Fix: also 'leave' the station when leaving for automatic servicing. 17 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. 17 years ago
rubidium 2efecd34c4 (svn r9808) -Codechange: unify the Handle<VehicleType>Loading functions. 17 years ago
peter1138 4591fb5b0d (svn r9806) -Codechange: [NewGRF] Add callback 36 support for purchase cost, for all vehicle types. 17 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. 17 years ago
rubidium 981bf52bdd (svn r9770) -Codechange: perform the payment of cargo when loading/unloading, but when arriving at the station. 17 years ago
rubidium a4e045a3fb (svn r9760) -Codechange: remove the need for saving some vehicle variables. 17 years ago
rubidium ec9ac99d01 (svn r9755) -Codechange: refactor some more of the begin loading stuff. 17 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. 17 years ago
rubidium 6440440f12 (svn r9752) -Codechange: remove some duplication related to BeginLoading. 17 years ago
maedhros 02e770ff2c (svn r9742) -Fix (r9689) [FS#739]: Fix cloning with refit costs again, hopefully for good this time. 17 years ago
truelight 347bfc7f9f (svn r9740) -Fix [FS#709]: removed wrong assert() that could be triggered by removing an order at the wrong moment 17 years ago
maedhros 034f3591cf (svn r9685) -Fix (r9683): Call v->LeaveStation() when a vehicle in a station is sent to a depot. 17 years ago
rubidium 80c259f64f (svn r9672) -Cleanup: lots of coding style fixes around operands. 17 years ago
belugas addcae43fa (svn r9664) -Documentation: Doxygen corrections,errors and omissions 17 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. 17 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.
17 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