glx
da1743e980
(svn r10126) -Fix (r10111, FS#864): old_new_hash cache was not reset when the position hash were
2007-06-13 01:38:00 +00:00
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')
2007-06-12 11:22:32 +00:00
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.
2007-06-11 14:00:16 +00:00
bjarni
3afea2d673
(svn r10077) -Fix: FS#845 Cloning Trains Longer Than 8 Units Causes Crash
...
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-09 18:31:04 +00:00
peter1138
9c66082b07
(svn r10062) -Codechange: Don't redraw all station tiles when cargo is added or removed if the station has no custom graphics.
2007-06-08 09:35:39 +00:00
rubidium
622a4d10b9
(svn r10056) -Revert (r10049): removing SLE_WRITEBYTE didn't work as expected :(. Somehow SlIterateArray and SlObject depend on eachother and adding a some arbitrary data before the SlObject makes it go crazy.
2007-06-07 12:37:48 +00:00
rubidium
eab8ac49ce
(svn r10049) -Codechange: get rid of the SLE_WRITEBYTE obfuscation.
2007-06-06 23:57:21 +00:00
peter1138
07c34b2628
(svn r10048) -Fix (r6455): Don't use override engine type for articulated wagon parts.
2007-06-06 10:51:11 +00:00
maedhros
8f361393dd
(svn r10020) -Fix [FS#824]: GetNextVehicle() is invalid for anything that isn't a train.
2007-06-02 09:11:06 +00:00
maedhros
4acf3e4c3f
(svn r10009) -Codechange: Add and use Vehicle::IsPrimaryVehicle to replace individual checks depending on the vehicle type.
2007-06-01 12:03:10 +00:00
maedhros
710cc5a597
(svn r9959) -Fix: Only call GetNextVehicle for trains.
2007-05-27 17:27:07 +00:00
peter1138
974aebcce5
(svn r9956) -Codechange: Add tram livery schemes
2007-05-27 09:33:41 +00:00
maedhros
1b33f19877
(svn r9953) -Fix: Only check whether trains are multiheaded when cloning.
2007-05-27 05:32:37 +00:00
maedhros
3914f3c85c
(svn r9939) -Fix (r3139): EngineHasArticPart(v) is only valid for trains.
2007-05-26 17:06:45 +00:00
rubidium
0819f3a9a0
(svn r9917) -Codechange: prepare some more areas for more road types.
2007-05-25 08:13:01 +00:00
rubidium
440d723d84
(svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple road types on a single tile.
2007-05-24 22:41:50 +00:00
glx
0646d307bd
(svn r9896) -Fix (r9874): when selling an entire train, decrease the number of vehicles in the group only once
2007-05-21 17:19:01 +00:00
peter1138
546dfc2758
(svn r9889) -Codechange: Use cargo's freight status for choosing livery scheme.
2007-05-20 10:27:43 +00:00
rubidium
4570a8954a
(svn r9878) -Fix (9874): some vehicle count's were not properly updated on delete or autoreplace of vehicles.
2007-05-19 12:29:09 +00:00
rubidium
7d4be11516
(svn r9874) -Feature: advanced vehicle lists a.k.a. group interface. Now you can make groups of vehicles and perform all kinds of tasks on that given group. Original code by nycom and graphics by skidd13.
2007-05-19 09:40:18 +00:00
rubidium
5178911345
(svn r9872) -Codechange: more type strictness for vehicle types
2007-05-18 23:38:29 +00:00
rubidium
ba24c34f85
(svn r9869) -Codechange: replace some bytes with VehicleType, i.e. more type strictness.
2007-05-18 17:31:41 +00:00
truelight
765c466b8d
(svn r9846) -Codechange: introduced ZOOM_LVL_MIN and ZOOM_LVL_MAX for the obvious reasons
...
-Codechange: introduced ZOOM_LVL_DETAIL to show/remove details
-Codechange: changed << and >> operator with ZoomLevel to a simple wrapper (that in theory also allows zoom-in besides the current zoom-out)
-Fix r9845: missed some int -> ZoomLevel
2007-05-15 16:08:46 +00:00
rubidium
23492f1f34
(svn r9841) -Codechange: add a little more type strictness to the vehicle types.
2007-05-15 11:28:22 +00:00
rubidium
c7d57379fb
(svn r9836) -Codechange: make non-improved loading happen FIFO-ish; generally loading/unloading will happen fifo, but there are no guarantees on the FIFO-ness. For (better) FIFO guarantees you still need to use improved loading.
2007-05-14 16:07:05 +00:00
rubidium
d78651f7b1
(svn r9831) -Codechange: more refactoring of the loading/unloading.
2007-05-13 21:24:58 +00:00
rubidium
2efecd34c4
(svn r9808) -Codechange: unify the Handle<VehicleType>Loading functions.
2007-05-07 16:21:34 +00:00
rubidium
fe1306ce65
(svn r9799) -Codechange: separate engine class and engine running cost class (mart3p).
2007-05-06 19:44:22 +00:00
rubidium
5c0a52149d
(svn r9795) -Codechange: enumify the EngineClass.
2007-05-06 15:01:44 +00:00
rubidium
abbaa1691e
(svn r9794) -Codechange: refactor the question whether a vehicle can be loaded into LoadUnloadVehicle instead of duplicating it for each vehicle.
2007-05-06 14:59:01 +00:00
rubidium
438d55d576
(svn r9789) -Fix (r9770): vehicles didn't get unloaded when 'full load' was specified and the vehicle was already full when it entered.
2007-05-05 09:51:26 +00:00
rubidium
b76cc8c96b
(svn r9784) -Codechange: remove unused variable.
2007-05-04 22:38:36 +00:00
glx
a7c39f7325
(svn r9773) -Fix r9772: MSVC warning
2007-05-03 17:07:51 +00:00
rubidium
9194d5ab9e
(svn r9772) -Fix [r9770,FS#761]: under some circumstances loading/unloading didn't work (correctly).
2007-05-03 11:02:37 +00:00
rubidium
981bf52bdd
(svn r9770) -Codechange: perform the payment of cargo when loading/unloading, but when arriving at the station.
2007-05-02 18:29:11 +00:00
rubidium
dce7dcb664
(svn r9764) -Codechange: replace some lookup tables by functions.
2007-05-02 09:29:41 +00:00
rubidium
1bea3b55a6
(svn r9763) -Codechange/Fix (r9760): don't read the variables that are calculated automatically either.
2007-05-01 18:17:52 +00:00
rubidium
a4e045a3fb
(svn r9760) -Codechange: remove the need for saving some vehicle variables.
2007-05-01 16:35:14 +00:00
rubidium
ec9ac99d01
(svn r9755) -Codechange: refactor some more of the begin loading stuff.
2007-04-29 22:33:51 +00:00
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.
2007-04-29 21:24:08 +00:00
rubidium
6440440f12
(svn r9752) -Codechange: remove some duplication related to BeginLoading.
2007-04-29 18:21:24 +00:00
maedhros
02e770ff2c
(svn r9742) -Fix (r9689) [FS#739]: Fix cloning with refit costs again, hopefully for good this time.
2007-04-29 08:43:00 +00:00
peter1138
1164c275af
(svn r9714) -Fix (r8110): Remove invalid assertion triggered by overly long trains being reversed while loading.
2007-04-24 19:05:16 +00:00
peter1138
15bfaba259
(svn r9702) -Codechange: Add livery support to newgrf vehicle var 43
2007-04-20 21:21:47 +00:00
rubidium
17dc1c6336
(svn r9692) -Fix (r9683): don't try to remove vehicles from the queue of a non-existing station.
2007-04-20 17:52:28 +00:00
bjarni
aa0e97e3ce
(svn r9689) -Fix: Clone vehicles will no longer refit for free
2007-04-20 17:08:55 +00:00
maedhros
8b65349d86
(svn r9684) -Fix (r9683): Remove vehicles from the station loading list instead of adding
...
them again when they leave, and add a v->LeaveStation() call for aircraft.
2007-04-20 11:05:56 +00:00
rubidium
fdf86bb4a2
(svn r9683) -Fix [FS#423]: improved loading does not use a huge amount of processing power anymore when having a lot of trains.
2007-04-20 08:00:30 +00:00
rubidium
2dc5589290
(svn r9673) -Cleanup: remove spaces before tabs and replace non-indenting tabs with spaces.
2007-04-18 22:41:53 +00:00
rubidium
80c259f64f
(svn r9672) -Cleanup: lots of coding style fixes around operands.
2007-04-18 22:10:36 +00:00