Age | Commit message (Collapse) | Author |
|
pool block clean up.
|
|
coordinates of the tile to operate on - to a TileIndex
Remove DoCommandByTile(), because now it does the same as DoCommand()
|
|
reservation in savegames and update where used
- Also add this capability to settings
|
|
SL_MAX_VERSION
|
|
for the fact that vehicles are introduced a year after their introduction date. This will also relieve possible (rare) network desyncs.
|
|
newgrf_engine.[ch], and add the new files to project files.
|
|
|
|
a randomized intro date, as per (the now updated) spec.
|
|
base introduction date if that date is not 0.
|
|
- Change fixed array per player to a single pool. This avoids future problems
with vehicle numbers and decreases savegame size. Engine replacements from
previous savegames will be lost.
- Move engine replacement code from players.c to engine.c.
(thanks to blathijs for rewriting this)
|
|
loading instead
of speed, and get that state from first vehicle in a train consist.
|
|
|
|
fixes names in climates where the engines don't get loaded. Renamed function to reflect its purpose.
|
|
foo.h: int bar;
GOOD
foo.h: extern int bar;
foo.c: int bar;
|
|
|
|
-Indentation
-Whitespace
-DeMorgan's Law
-Test with NULL or 0 for non-booleans
-'\0' instead of 0 for chars
-Remove redundantly redundant comments (like DoFoo(); // Do foo)
-Join multiple short lines with a single statement
-Split single lines with multiple statements
-Avoid assignments in if
|
|
by cargo classes.
|
|
used, for example, by coal tenders.
|
|
as entering a depot, so call moved out of DoVehicleTrigger loop.
|
|
line 378
running MaybeReplaceVehicle() is now delayed until after the loop in CallVehicleTicks()
This avoids selling the vehicle the loop currently works with (and continues to work with afterwards)
|
|
comments, excess empty lines, minor other changes
nothing spectacular, just some stuff, which piled up
|
|
of manual shifting/anding
|
|
|
|
groups. This will allow unloading.
|
|
of callbacks results within random and "real" groups. (Not fully supported yet.)
|
|
pointers instead of copying the data around.
|
|
plus some related changes (mostly casts)
|
|
CT_INVALID/OWNER_SPECTATOR/INVALID_STATION where appropriate
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bitmask, so
that railtypes do not be in ascending order of appearance. Allows easier
implementation or more railtypes
|
|
of GB - should be a bit nicer to read
|
|
sprites.
|
|
|
|
|
|
that goes with it.
|
|
overrides.
|
|
|
|
callbacks.
- Feature: [newgrf] Implement the 'refit capacity' callback.
|
|
removed the 'byte' saveload arrays which means you can save an array of more than 255 elements, or bigger structs than 255 bytes. This doesn't yet solve the problem that a chunk can be a maximum of 16384 big.
- Fix: also fix an unnoticed error in SlSaveLoadConv() due to wrong types.
|
|
0xDA. These are the position in and length of chain of consecutive vehicles with the same type, and index of the next wagon in the chain (INVALID_VEHICLE if last), resp. Improves displaying of some engines in the dbsetxl.
|
|
support it. Only valid ones are signs (delete) and waypoints (rename to default).
|
|
of abusing _decode_parameters as text buffer. This should prevent several possible buffer overruns and is a bit cleaner to use. As bonus it reduces the size of most command packets by 79 bytes.
|
|
extensive rewrite and global/local-cargo ID juggling and bitmasking. However with this done it looks better as well and is compatible with newgrf handling. Big thanks to HackyKid for doing most of the work. This also closes patch "[ 1199277 ] Command checks"
|
|
to a total of 61, which is 53% :)
- CodeChange: To correctly accept engine-prototypes, the best-player checking has been moved to its own function, I hope it functions the same as before.
- CodeChange: Added symbolic types of PlayerID, OrderID and EngineID. For engines also added GetEngine() and IsEngineIndex(), similar to the other such functions.
- CodeChange: To correctly build industries, some tables have been moved to build_industry.h. The only way to find out currently if an industry is valid in a climate is by looping all industries and checking if it matches. Also to comply with the patch setting build_rawmaterial_industries, it is assumed that these industries do not accept any cargo of any type. This can and probably should changed in the future to some flag in their struct. Also use _opt_ptr instead of _opt.
- CodeChange: implemented the HQ checking code inspired by MarkR2 in "[ 1190944 ] Many commands not checked for security". Unfortunately it is impossible to prevent only deleting a HQ by a modified client atm.
- CodeChange: For insert order and modify order their parameters are implicitely truncated to 8 bits, instead of the 16 bits said in the comments.
|
|
overriding_engine, which was around probably only for historical reasons. (Paralellily developed by HackyKid.)
|