summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
AgeCommit message (Collapse)Author
2007-08-29(svn r11001) -Codechange: unify the way to determine whether a vehicle is in ↵rubidium
a depot.
2007-08-29(svn r10997) -Codechange: unify the vehicle view window. Patch by PhilSophus.rubidium
2007-08-24(svn r10971) -Codechange: One less magical numberbelugas
2007-08-06(svn r10808) -Fix (r10353): Make sure spectators can't open infrastructure ↵maedhros
building menus.
2007-08-05(svn r10799) -Fix: only calling QuickFree and not the destructor on pool ↵rubidium
cleanups might cause memory leaks due to the way C++ works.
2007-08-05(svn r10798) -Fix [FS#1105]: virtual functions do not work in destructors :(.rubidium
2007-08-03(svn r10772) -Codechange: also make use of the generic clean and destroy ↵rubidium
pool callback functions for vehicle.
2007-08-03(svn r10770) -Codechange: use the pool item class as super class for the ↵rubidium
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.
2007-08-02(svn r10756) -Codechange: use vehicle->IsValid in favour of ↵rubidium
IsValidVehicle(vehicle).
2007-08-01(svn r10744) -Codechange: make the pool a little more OO, so it can be ↵rubidium
easier in other places.
2007-07-30(svn r10734) -Fix [FS#1030]: Revert r10513) and add special cases for ↵peter1138
collision detection on bridges/tunnels.
2007-07-29(svn r10721) -Fix [FS#1084]: Skip articulated parts of road vehicles during ↵peter1138
unique name check.
2007-07-28(svn r10714) -Fix r10696: MSVC performance warningglx
2007-07-26(svn r10697) -Codechange: give a more sensible names to some of the unkX ↵rubidium
variables.
2007-07-26(svn r10696) -Codechange: remove duplication of the "make sprite ↵rubidium
transparent" code.
2007-07-25(svn r10684) -Codechange: some more coding style related changes. Primarily ↵rubidium
moving { to a new line.
2007-07-17(svn r10603) -Codechange: avoid direct access to _engine_infopeter1138
2007-07-11(svn r10513) -Fix [FS#1022]: use vehicle subtile position to update cache, ↵peter1138
not tile, so that collision detection works on bridges and tunnels.
2007-07-08(svn r10478) -Fix [FS#999]: remove the loading indicator when a vehicle is ↵rubidium
removed.
2007-07-01(svn r10409) -Codechange: replace (Aircraft|RoadVeh|Ship|Train)_Tick with a ↵rubidium
Tick method in the Vehicle class.
2007-07-01(svn r10408) -Codechange: make GetImage a class method of Vehicle instead of ↵rubidium
Get(Aircraft|RoadVeh|Ship|Train)Image.
2007-06-28(svn r10380) -Fix (r10364): when checking for unique names, only check ↵peter1138
vehicles that can have names, and skip inactive players.
2007-06-27(svn r10364) -Fix [FS#706]: checking for duplicate custom names was ↵peter1138
inconsistent, and tested all 'namespaces'. now only check names of the same type.
2007-06-27(svn r10363) -Fix [FS#911]: invalidating autoreplace windows didn't take ↵peter1138
account of vehicle group (Matthias Wolf)
2007-06-27(svn r10354) -Fix [FS#950]: loading indicator showed "^" when the train ↵rubidium
would load at the given station.
2007-06-27(svn r10353) -Fix/Feature [FS#669]: disallow (in the GUI) the building of ↵rubidium
infrastructure you do not have available vehicles for. This means that the airport building button is disabled till you can actually build aircraft. The game itself will not disallow you to build the infrastructure and this "new" behaviour can be overriden with a patch setting.
2007-06-26(svn r10341) -Fix (r10236): Only update the timetable when leaving stations ↵maedhros
if this is a scheduled stop.
2007-06-25(svn r10335) -Fix (r10331): Increment the current order index *after* using ↵maedhros
it in UpdateVehicleTimetable.
2007-06-24(svn r10302) -Fix [YAPF, MP]: now (with r10301) it is no longer needed to ↵KUDr
invalidate the YAPF segment cache every tick in MP. Segment cost now doesn't contain the curves between segments. As a result the cache should be now accurate.
2007-06-22(svn r10270) -Add: prefixed the loading indicator with an arrow, up meaning ↵truelight
vehicle is loading, down meaning vehicle is unloading
2007-06-22(svn r10266) -Codechange: keep track of the origin, time of travel and ↵rubidium
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.
2007-06-21(svn r10254) -Feature: loading indicator, which shows in % how full a ↵truelight
vehicle is while loading/unloading (TheJosh)
2007-06-20(svn r10236) -Feature: Introduce a form of timetabling for vehicles.maedhros
2007-06-18(svn r10210) -Codechange: make all money related variables 64 bits, so ↵rubidium
overflowing them should become a little harder.
2007-06-18(svn r10205) -Codechange: refactor returning of cost, so it can be more ↵rubidium
easily modified.
2007-06-18(svn r10200) -Codechange: add "shortcut" for !CmdFailed (CmdSucceeded).rubidium
2007-06-18(svn r10197) -Codechange: replace int32 with CommandCost where appropriate.rubidium
2007-06-13(svn r10154) -Fix [FS#870]: some vehicles were not drawn when having a high ↵rubidium
resolution and a high zoom-out level. Patch by B. N. SmatZ!.
2007-06-13(svn r10153) -Fix [FS#869]: vehicles disappear when crossing certain tiles. ↵rubidium
Fix by B. N. SmatZ!.
2007-06-13(svn r10129) -Fix (r10111): Test for x == INVALID_COORD instead of v->tile ↵peter1138
== INVALID_TILE to determine if a vehicle should be removed from the has.
2007-06-13(svn r10126) -Fix (r10111, FS#864): old_new_hash cache was not reset when ↵glx
the position hash were
2007-06-12(svn r10111) -Codechange: Add new vehicle hash table for collision detection ↵peter1138
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')
2007-06-11(svn r10097) -Feature: Add support for articulated road vehicles, or ↵maedhros
callbacks 11 and 17 for road vehicles for those who prefer the technical explanation.
2007-06-09(svn r10077) -Fix: FS#845 Cloning Trains Longer Than 8 Units Causes Crashbjarni
The problem was that if adding units to the clone (wagon by wagon) failed, then cloning wouldn't notice it and it made two half trains Now it detects this case and it will make cloning fail. The string with the explanation for the failed move will be used in the error message so the user will know why it failed.
2007-06-08(svn r10062) -Codechange: Don't redraw all station tiles when cargo is added ↵peter1138
or removed if the station has no custom graphics.
2007-06-07(svn r10056) -Revert (r10049): removing SLE_WRITEBYTE didn't work as ↵rubidium
expected :(. Somehow SlIterateArray and SlObject depend on eachother and adding a some arbitrary data before the SlObject makes it go crazy.
2007-06-06(svn r10049) -Codechange: get rid of the SLE_WRITEBYTE obfuscation.rubidium
2007-06-06(svn r10048) -Fix (r6455): Don't use override engine type for articulated ↵peter1138
wagon parts.
2007-06-02(svn r10020) -Fix [FS#824]: GetNextVehicle() is invalid for anything that ↵maedhros
isn't a train.
2007-06-01(svn r10009) -Codechange: Add and use Vehicle::IsPrimaryVehicle to replace ↵maedhros
individual checks depending on the vehicle type.