TechGeekNZ
|
fe1925931d
|
Cleanup: Correct typographic errors in code comments.
|
4 years ago |
TechGeekNZ
|
937b366546
|
Cleanup: StationCargoList::AreMergable doxygen comment references Vehicle instead of Station.
|
4 years ago |
glx
|
5fce5fa300
|
Codechange: Replace FOR_ALL_CARGOPACKETS with range-based for loops
|
5 years ago |
S. D. Cloudt
|
13cc8a0cee
|
Cleanup: Removed SVN headers
|
5 years ago |
JMcKiern
|
04f659e768
|
Fix: Some typos found using codespell
|
5 years ago |
Charles Pigott
|
2e1936da64
|
Codechange: Remove SourceTypeByte type
|
6 years ago |
Henry Wilson
|
7c8e7c6b6e
|
Codechange: Use null pointer literal instead of the NULL macro
|
6 years ago |
fonsinchen
|
7096d42bb3
|
(svn r26660) -Fix: CargoPacket::SourceStation() returns a StationID.
|
10 years ago |
fonsinchen
|
88787412b6
|
(svn r26327) -Fix [FS#5901]: Take care of next_station when reassigning from MTA_DELIVER to MTA_TRANSFER.
|
11 years ago |
fonsinchen
|
bd230f34f4
|
(svn r25900) -Change [FS#5677]: Allow restricted flows to be picked for kept cargo.
|
11 years ago |
fonsinchen
|
54db96be43
|
(svn r25891) -Feature: Use smallstack to allow for multiple next hops when loading and unloading.
|
11 years ago |
fonsinchen
|
3dd811e179
|
(svn r25434) -Fix: reroute cargo staged for unloading if a link breaks
|
11 years ago |
fonsinchen
|
741c431caa
|
(svn r25362) -Feature: consider cargo waiting at other stations for rating at the origin station
|
11 years ago |
fonsinchen
|
04e3eb6fab
|
(svn r25361) -Feature: distribute cargo according to plan given by linkgraph
|
11 years ago |
frosch
|
5eddbb338b
|
(svn r25185) -Fix [FS#5508]: Remove ambivalent functions CargoList::Empty() and Count(), and replace them with VehicleCargoList::StoredCount(), TotalCount(), StationCargoList::AvailableCount() and TotalCount(). (fonsinchen)
|
12 years ago |
rubidium
|
4367224b35
|
(svn r25013) -Feature: show the amount of cargo that has already been reserved by full loading vehicles in the station (fonsinchen)
|
12 years ago |
rubidium
|
cdb0a76958
|
(svn r25012) -Codechange: persistently keep 'reserved' cargo (for full-load improved loading) instead of calculating if for every cycle
|
12 years ago |
rubidium
|
d6e2a8aa56
|
(svn r25010) -Codechange: Add general framework for cargo actions, i.e. loading, transfering, delivering and such, to contain this logic in a single place instead of spread around (fonsinchen)
|
12 years ago |
rubidium
|
71bbc130fc
|
(svn r25009) -Codechange: refactor bits of cargo packet (lists) to reduce duplicated code (fonsinchen)
|
12 years ago |
rubidium
|
2795ed5b09
|
(svn r25008) -Codechange: Make CargoList::Truncate behave similarly to CargoList::MoveTo, i.e. pass the amount to truncate (fonsinchen)
|
12 years ago |
planetmaker
|
c24374f99c
|
(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow)
|
12 years ago |
truebrain
|
1c9bec1999
|
(svn r23640) -Fix: stop using FORCEINLINE (1/3rd of the instances were, the others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC)
|
13 years ago |
frosch
|
474b4799e8
|
(svn r22482) -Codechange: Add some contants for the number of ticks between certain cyclical tasks.
|
14 years ago |
smatz
|
756cc6cf65
|
(svn r22116) -Codechange: use PoolBase::Clean() at more places
|
14 years ago |
rubidium
|
68bc93f950
|
(svn r22111) -Codechange/fix-ish: upon cleaning a pool a destructor should not delete items from other pools
|
14 years ago |
rubidium
|
2707186f6a
|
(svn r21849) -Codechange: move merging/splitting of cargopackets into a helper function (fonsinchen)
|
14 years ago |
rubidium
|
07e14525b8
|
(svn r21848) -Codechange: unification of comment style for cargopacket.*
|
14 years ago |
rubidium
|
6c9078fd30
|
(svn r21844) -Codechange: move documentation towards the code to make it more likely to be updates [a-c].
|
14 years ago |
rubidium
|
1fa98e1695
|
(svn r20574) -Codechange: a little over 1 million vehicles should be enough for the forseeable future
|
14 years ago |
rubidium
|
82fc28f77f
|
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
|
15 years ago |
rubidium
|
547677a782
|
(svn r17840) -Codechange: use the new pool's concepts (caching + not zeroing). Improves average CargoPacket con/destruction time by ~20%, MoveTo/Append by 5-10% and application performance by up to 2%.
|
15 years ago |
rubidium
|
a4d054eabc
|
(svn r17837) -Fix (r17812): comment erroneously mentioned feeder share
|
15 years ago |
rubidium
|
69b8e8e755
|
(svn r17836) -Codechange: split the CargoPacket constructor for creating 'real' new CargoPackets and saveload. For saveload we do not need to set anything except two variables (the rest is always overwritten by the load), for new 'real' cargo also pass the source_xy; dereferencing st before calling is easier than resolving st->index back to st and then dereferencing. Also don't set loaded_at_xy because that is of no importance when not loaded in a vehicle.
|
15 years ago |
rubidium
|
7f6d9d8c11
|
(svn r17814) -Codechange: there's no need to invalidate the cache in the constructor of a CargoList; the list is empty, the CargoList is calloc-ed so all caches are 0.
|
15 years ago |
rubidium
|
08ac51fada
|
(svn r17813) -Codechange: unify the CargoPacket related coding style
|
15 years ago |
rubidium
|
2cca30d2e3
|
(svn r17812) -Codechange: move the feeder_share cache from CargoList to VehicleCargoList; saves 512 bytes per station and 1-2% on CargoList::MoveTo.
|
15 years ago |
frosch
|
fea06c5755
|
(svn r17809) -Fix: MSVC compilation.
|
15 years ago |
rubidium
|
e613107e02
|
(svn r17808) -Codechange: remove write 'access' from all of CargoPacket's variables
|
15 years ago |
rubidium
|
f11cebfe9b
|
(svn r17807) -Codechange: move all 'updates' just after the 'load' constructor of CargoPackets to the constructor call itself
|
15 years ago |
rubidium
|
4ad30fecde
|
(svn r17806) -Codechange: split CargoPacket's 'afterload' to a separate function
|
15 years ago |
rubidium
|
62a6e9509b
|
(svn r17804) -Codechange: move the CargoPacket 'invalidation' when stations get removed to CargoPacket.
|
15 years ago |
rubidium
|
f76de82679
|
(svn r17801) -Codechange: for StationCargoLists the 'loaded_at_xy' does not matter when merging CargoPackets
|
15 years ago |
rubidium
|
138e7233bc
|
(svn r17800) -Codechange: first steps into making CargoList a template
|
15 years ago |
rubidium
|
2e766884f6
|
(svn r17795) -Codechange: split cargolist into one for vehicles and one for stations.
|
15 years ago |
rubidium
|
c53682810f
|
(svn r17736) -Codechange [FS#3135]: rewrite CargoList::MoveTo; don't require the secondary list, use cache updates instead of rebuilds. This is usually faster because of primarily gradual loading that only moves a (small) part of the cargo each time. Based on patch by fonsinchen.
|
15 years ago |
rubidium
|
705615fd91
|
(svn r17735) -Codechange: update the cache one inserting/removing CargoPackets from the CargoList via Append/Truncate instead of rebuilding the whole cache. For Append this changes the O(n) cache rebuild into a O(1) cache update. For Truncate no temporary list is needed anymore (based on patch by fonsinchen)
|
15 years ago |
rubidium
|
446363aac4
|
(svn r17734) -Fix (r17732): broke the assumption that 'this->packets == this', which broke loading old savegames. Now remove the (need for the) hack that needed that assumption.
|
15 years ago |
rubidium
|
9b045ac7b2
|
(svn r17733) -Codechange: store the 'days in transit' cache as the sum of the days in transit instead of the average; the variable isn't requested that often (primarily station NewGRFs) that the dividing/testing for dividing by 0 step needs to be cached.
|
15 years ago |
rubidium
|
80f0df17ba
|
(svn r17732) -Codechange: reorder some variables of cargo packets/cargo lists to get better alignment *and* smaller structs; both from 40 bytes to 32 bytes on 64 bits.
|
15 years ago |
rubidium
|
d52fa73bb1
|
(svn r17731) -Codechange: do not cache a boolean which states whether some other variable is not 0.
|
15 years ago |