Age | Commit message (Collapse) | Author |
|
more uniform.
-Cleanup: whitespace alignment of a few tables.
|
|
{' -> '} else {', tabs between code and comment, etc.
|
|
- Start using DeleteXXX for every pool item, not manually doing it
- Use some wrapper to improve logic
- Rewrote some pieces to improve logic
|
|
-Codechange: cleaned up the EngineRenew code a bit (coding style mostly)
-Codechange: forgot the correct comment in station_cmd
-Codechange: move pool-stuff to engine.h, like we always do
|
|
whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
|
|
based at the year 0.
The game date subsystem now allows someone to start in the year 0 and continue
up to the year 5 000 000. However, you currently cannot build anything before
1920 as there is no newgrf support for dates before 1920 or after 2090 yet.
|
|
|
|
|
|
better than raw numbers
|
|
is not yet used
|
|
This simplifies code that works with more than one vehicle type.
|
|
Clearing engine and newgrf_engine from cargo related structures.
Apart from moving stuff cargo related, there is nothing really newcargo for now.
|
|
within StationSpec and GRFFile struct declarations. Now only code which actually references those pointers needs to know about the SpriteGroup struct. Remove some unnecessary lingering header dependencies.
|
|
data) used by variable 0x42.
|
|
default and purchase pseudo types, to a station spec.
|
|
_*_vehicle_info[]; create and use a function to retrieve data, and ensure constness.
|
|
variables instead of using the general byte-type.
|
|
them. Currently the second colour is fixed to be the player's colour.
|
|
|
|
remove global variable to return data as we can now access this directly.
|
|
|
|
newgrf_engine.[ch], and add the new files to project files.
|
|
- 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)
|
|
class. Also fix typo in r3384.
|
|
|
|
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;
|
|
by cargo classes.
|
|
used, for example, by coal tenders.
|
|
|
|
of manual shifting/anding
|
|
|
|
plus some related changes (mostly casts)
|
|
references to our (new) original engine/vehicle tables.
|
|
them so NewGRF data can be loaded without wiping out the default data.
|
|
functions that don't change their pointer parameters
- change a lot of byte player types to PlayerID
- beautify header files, same "#endif /* filename */" ending
|
|
Partly reverted r2290
|
|
|
|
know what line represents what vehicle (I hope I didn't mess that up). Added some comments while I'm at it and include the table/ directory in the Doxygen generation
|
|
|
|
|
|
and the callback that goes with it.
- Codechange: Remove some magic numbers (PALETTE_CRASH)
|
|
callback will fail.
|
|
that goes with it.
|
|
capacity' callback slightly more correct.
|
|
callbacks.
- Feature: [newgrf] Implement the 'refit capacity' callback.
|
|
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.
|
|
|
|
|