Age | Commit message (Collapse) | Author |
|
whatever has been actually unloaded and perform the payment when unloading has finished. This fixes, amongst others:
* cheating by starting to unload and after getting paid rushing to the depot to get sold (or unloading, loading and getting paid again for the remainder)
* cargo being dropped onto a station at the moment a stockpiling industry doesn't accept it anymore
* industries getting cargo that has not been unloaded yet and subsequently dumping it back on the station in one go
Note: you will now get paid after the unloading has finished, so you'll have to wait a bit longer for 'your' money.
|
|
in order to improve performance (~5% with many vehicles)
|
|
casts when converting Vehicle to specialised vehicle types. Includes safety check
|
|
constructor will zero the whole class. This caused all vehicle indices to be 0, which causes all kinds of trouble.
|
|
vehicles in more places. Esp. they were only invalidated for trains.
|
|
instead of constructor of each vehicle type
|
|
|
|
|
|
for all vehicle types
|
|
|
|
struct so (some vehicle related) NewGRF cache 'desyncs' can be tested easier.
|
|
|
|
from VehicleRail to Train
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
time, binary size and run time (with asserts disabled) should be improved
|
|
variable instead of var->index
|
|
was deleted
|
|
|
|
PoolItem::IsValidID(index)
|
|
PoolItem::GetPoolSize()
|
|
|
|
|
|
(thanks smatz)
|
|
some code.
|
|
coord.(left,right,top,bottom), i.e. use Rect.
|
|
(though spec stated they are). Caching these variables can yield a 10+% speed increase when those vehicle variables are queried often.
|
|
|
|
color and colour.
|
|
it impossible to (share-)clone the vehicle.
|
|
|
|
savegames. Based on SVXConverter's source code and documentation by Roman Vetter
|
|
|
|
|
|
remove the order count from the savegame as we can easily count that (PhilSophus)
|
|
through a method GetNumOrders() (PhilSophus)
|
|
with the same UnitID
|
|
out of the vehicle struct (saving up to 16 bytes per vehicle) as it is only used to tell a calling function entered a depot (for autoreplace).
|
|
Vehicle::dest_tile.
|
|
keep waiting times (PhilSophus)
|
|
|
|
client so it is immediatelly clear which one you are working with.
|
|
|
|
deleted/modified while the timetable window is open
-Fix: close any dropdown and child windows in the Order and Timetable windows when selected order is deselected, deleted, ...
|
|
to a single location.
|