Age | Commit message (Collapse) | Author |
|
|
|
better than raw numbers
|
|
scope, CSE for readability, DeMorgan, if cascades -> switch, whitespace, parentheses, bracing, misc.
|
|
by Celestar)
|
|
coordinates of the tile to operate on - to a TileIndex
Remove DoCommandByTile(), because now it does the same as DoCommand()
|
|
_*_vehicle_info[]; create and use a function to retrieve data, and ensure constness.
|
|
clean-up a little further
|
|
create/use helper macro/enum for recoloring scheme
|
|
reservation in savegames and update where used
- Also add this capability to settings
|
|
SL_MAX_VERSION
|
|
Makes MSVC happy? Yes.
|
|
for the fact that vehicles are introduced a year after their introduction date. This will also relieve possible (rare) network desyncs.
|
|
games and saving of old ecenomy data
|
|
|
|
|
|
can happen in certain border-cases. For now just dynamically get this value when requested so it is always right. To do properly all player/client creation/destruction needs a hook for networking.
|
|
|
|
companies and spectators for a server. This can be changed/viewed during runtime as well in the console.
|
|
- 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)
|
|
|
|
redraw the replace window after the command has completed, rather than after calling the command.
|
|
particular type are obsolete.
|
|
|
|
replacement code.
|
|
-Fix: the AI speed control is done by the AI-core, individual AIs don't have to do it (so, AIs were delayed twice ;)
-Add: Support for AI-network-clients (an AI, connecting to a remote server)
-Fix: minor AI-core problems
|
|
via patch
settings, off by defaut). An other step to AIScripts.
WARNING: this is still highly experimental and has known bugs!
|
|
-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
|
|
|
|
|
|
long trains
-Trains will now remember the length of stations it visits and sell cars
when being autoreplaced if they became too long
-If it needs to remove cars, then it starts from the front and sells
all it can find until the train is short enough
-This only works for trains, that knows the station length of the route
so a full uninterrupted run is needed
-a train needs 1-2 runs to detect if the shortest station is expanded
-This feature can be turned on and off in the train replace window
and each company can have it's own setting
-NOTE: minor savegame version bump
|
|
a typo, shall we :P
|
|
invalid string message in the case when a highscore file was used before certain strings were added.
- Codechange: protect _endgame_perf_titles from out-of-bounds access.
|
|
|
|
numbers to sort out wagons
|
|
comments, excess empty lines, minor other changes
nothing spectacular, just some stuff, which piled up
|
|
0/-1 -> INVALID_ENGINE
0x10 -> OWNER_NONE
|
|
|
|
int/uint/int16/byte/-1 with proper types and constants
|
|
proper types or just removing them
|
|
s/byte/PlayerID/
s/int/PlayerID/
and related changes
|
|
CT_INVALID/OWNER_SPECTATOR/INVALID_STATION where appropriate
|
|
functions that don't change their pointer parameters
- change a lot of byte player types to PlayerID
- beautify header files, same "#endif /* filename */" ending
|
|
for everyone
- Add IsLocalPlayer() which substitutes _local_player == _current_player
|
|
-Fix: removed the ability for the oldAI to cheat (this will criple him somewhat)
-Add: base-code for many improvements to come in the AI-system
-Add: added base-code for multiplayer AIs (DOES NOT WORK YET!)
|
|
becomes 'trolly', AIOld becomes 'default', both in their own dir in the 'ai' dir. More AIs to come.
|
|
serverside
-This means that one company can only have one setting for renew and replacing
more clients will not fight due to different settings anymore
-This is a needed step in the line to fix autoreplacing dualheaded locomotives
NOTE: savegame revision bump (peter1138 + me in coop)
|
|
|
|
numbers
by enums. There remains work in gfx.c to move the "transparency" and
"recolor" bits around to make space for more sprites. However, 2800
additional sprites can now be loaded. There also remains cleanup and
Doxygen work on many of the header files.
|
|
|
|
bits
|