smatz
50624d5c0f
(svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved
16 years ago
smatz
70d3ed15c8
(svn r16376) -Codechange: Vehicle::Tick() now returns false if the vehicle was deleted
16 years ago
smatz
6636ed7589
(svn r16354) -Codechange: use 'new' pool accessors and methods for Engine too
16 years ago
smatz
0c10daa243
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
16 years ago
smatz
d495dc5dbc
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
16 years ago
yexo
d489f93473
(svn r16315) -Codechange: move the autorenew settings to a new CompanySettings struct
16 years ago
smatz
c189a15e3e
(svn r16302) -Codechange: remove Vehicle::AllocateList
16 years ago
smatz
09d16b4106
(svn r16299) -Fix (r16242): don't use DoCommandP when the function can be called from another command
16 years ago
rubidium
9777d0cfd6
(svn r16291) -Fix [FS#2893]: RVs were unable to find a depot when turning around (in some cases), causing 'nearest depot' orders to be occasionally lost.
16 years ago
frosch
8bb92c110d
(svn r16260) -Codechange: Add Vehicle::IncrementOrderIndex() to deduplicate some code.
16 years ago
rubidium
241af768f0
(svn r16242) -Codechange: rework pausing
...
-Fix [FS#2864]: autopause and manual pausing conflict with eachother
-Fix: new game + pause on new game + autopause make the game not unpause on the first join
16 years ago
frosch
f1347ded2b
(svn r16240) -Fix: Make 'stop in depot'-orders only apply on the target depot, not those which are entered on the way to them.
16 years ago
frosch
c95bbdc6c1
(svn r16228) -Fix/Change (r16187): If we are heading for a different depot, do also not do the refitting-part of the depot-order.
...
-Fix (r16198): && != &, GetDepotOrderType != GetDepotActionType and - uhm - ODATFB_NEAREST_DEPOT is not set for current_order either.
16 years ago
frosch
cf0bc6e649
(svn r16198) -Fix/Change (r16187): 'Go to nearest depot'-orders are fulfilled when reaching any depot, even though the train decided for a different depot on the last junction/order-skip.
16 years ago
rubidium
b5f7583472
(svn r16187) -Fix [FS#2871]: do mark the "go to depot X" order fulfilled when reaching any depot, but only when reaching depot X.
16 years ago
smatz
cc6955ce47
(svn r16178) -Fix [FS#2866]: don't try to reserve path for trains crashed in station
16 years ago
rubidium
5c5b357043
(svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible.
16 years ago
rubidium
e0e9a1b02e
(svn r16114) -Cleanup: unify some more strings and remove some more unused strings
16 years ago
rubidium
51288dee9d
(svn r16079) -Fix [FS#2824]: insanely fast trains would not stop in time for stations
...
-Fix: insanely fast trains would sometimes 'jump' over waypoints/via stations within a tick, which would cause the order not to be processed causing the train to go in loops until (with luck) it 'hit' the tile
16 years ago
rubidium
fc1607a763
(svn r16048) -Fix/Feature-ish [FS#2740]: don't warn that crashed vehicles are getting old; upgrading them is impossible (racetrack)
16 years ago
rubidium
c3e87f345d
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
16 years ago
rubidium
f3e0fd7416
(svn r15711) -Codechange: lots of whitespace cleanup/fixes
16 years ago
smatz
4c6afbbbe2
(svn r15704) -Cleanup: remove further includes from recently split files
16 years ago
frosch
d86e821f53
(svn r15701) -Fix [FS#2595]: Blame NewGRFs returning inconsistent information in purchase-list/after building before users have a chance to blame OpenTTD for incorrectly autorenewing/-replacing.
16 years ago
rubidium
473c210368
(svn r15699) -Codechange: split Cmd* from vehicle.cpp to vehicle_cmd.cpp.
16 years ago
rubidium
bc11c9e5a5
(svn r15681) -Cleanup: remove unneeded forward declaration.
16 years ago
rubidium
b003536ea8
(svn r15676) -Codechange: remove the need for BeginVehicleMove and merge VehiclePositionChanged and EndVehicleMove.
16 years ago
rubidium
9d0c77b123
(svn r15672) -Codechange: (left,right,top,bottom)_coord -> coord.(left,right,top,bottom), i.e. use Rect.
16 years ago
michi_cc
80133f67ea
(svn r15652) -Fix [FS#2706]: new (this) is seldom a good idea as destructors of member variables aren't run causing memory leaks.
16 years ago
smatz
488b7e6bf6
(svn r15624) -Fix (r15621): warning about comparing signed and unsigned integer types
16 years ago
peter1138
85569a4559
(svn r15622) -Codechange: Duplication.
16 years ago
peter1138
c50730d57b
(svn r15621) -Feature: When cloning a vehicle with a custom name, add and/or increment a number at the end of name and assign it to the new vehicle (for emma)
16 years ago
smatz
1f42f44092
(svn r15569) -Codechange: replace MallocT + memset( 0 ) calls by CallocT
16 years ago
frosch
abe4692da2
(svn r15541) -Revert (r15399): 'v->cargo_type' is also used in other places, which cannot accept CT_INVALID.
...
-Codechange: Add Engine::GetDefaultCargoType() and Engine::CanCarryCargo() and use them.
-Fix [FS#2617]: When articulated parts have no available default cargo, use the cargo type of the first part for livery selection.
-Change: To decide whether a vehicle is refittable do not test its current capacity for being zero, but always use the 'capacity property'.
Note: The property is used unmodifed without calling CB 15/36. By setting it to a non-zero value and returning zero in the callback vehicles can be refitted to/from zero capacity for e.g. livery effects.
Note: It is intentional that you cannot control refittability by CB 36.
16 years ago
frosch
8aab3b09f5
(svn r15517) -Fix [FS#2642](r6455): Wagonoverrides and articulated engine parts use the colour scheme of the engine, but not its recolour callback, nor its 2CC flag. Same applies to roadvehicles.
16 years ago
rubidium
5c8cf85613
(svn r15434) -Codechange: bit of type safety for the DC_xxx flags.
16 years ago
rubidium
89e1afdaa0
(svn r15428) -Codechange: consistently use colour instead of having both color and colour.
16 years ago
rubidium
a49197f522
(svn r15336) -Fix: do not use _current_company in the GUI as there are no guarantees that _current_company is the same as _local_company.
16 years ago
smatz
c50d947784
(svn r15318) -Fix [FS#2594](r10288): don't warn about non-primary engines getting old
16 years ago
smatz
9021c20b5e
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
smatz
ca45774160
(svn r15077) -Codechange: enumify DAYS_IN_YEAR and DAYS_IN_LEAP_YEAR
...
-Change: when computing daily running cost, divide by 365 (instead of 364). Since r12134, the rounding errors don't need this correction anymore
16 years ago
truebrain
c2406cd42d
(svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to see.
...
NoAI is an API (a framework) to build your own AIs in. See:
http://wiki.openttd.org/wiki/index.php/AI:Main_Page
With many thanks to:
- glx and Rubidium for their syncing, feedback and hard work
- Yexo for his feedback, patches, and AIs which tested the system very deep
- Morloth for his feedback and patches
- TJIP for hosting a challenge which kept NoAI on track
- All AI authors for testing our AI API, and all other people who helped in one way or another
-Remove: all old AIs and their cheats/hacks
16 years ago
rubidium
c305a35e45
(svn r14990) -Codechange: handle articulated RVs and trams more strictly in GetStationTileForVehicle and CanVehicleUseStation (based on idea by Swallow)
16 years ago
smatz
c5db2ea181
(svn r14958) -Codechange [FS#1923]: when checking for unique names, compare only with manually set names
...
There are situations that aren't solvable (because of different language files), so if the user really wants to have duplicated name, allow him to do so. It solves desyncs between server and clients using different languages. It behaves the same in SP and MP, so users won't see the different behaviour as a bug (and even checking in SP could be worked around by the user).
16 years ago
rubidium
0543f50181
(svn r14952) -Codechange: unify the "can vehicle go to station" tests
16 years ago
rubidium
28ea38ae55
(svn r14949) -Cleanup: pointer coding style
16 years ago
rubidium
c0e7434f38
(svn r14944) -Cleanup: add spaces around some operators
16 years ago
rubidium
d197060137
(svn r14933) -Codechange: check the whether a pool item can be constructed instead of trying to make it and check for NULL.
16 years ago
frosch
eec8c04586
(svn r14925) -Fix [FS#2500]: Abort dragging of vehicles in the group window when they are deleted.
16 years ago
smatz
ec7ebf2170
(svn r14835) -Change: apply the 'warn if train's income is negative' setting to other vehicle types, too
16 years ago