Age | Commit message (Collapse) | Author |
|
- A proper ./configure, so everything needs to be configured only once, not for every make.
- Usage of makedepend when available. This greatly reduces the time needed for generating the dependencies.
- A generator for all project files. There is a single file with sources, which is used to generate Makefiles and the project files for MSVC.
- Proper support for OSX universal binaries.
- Object files for non-MSVC compiles are also placed in separate directories, making is faster to switch between debug and release compiles and it does not touch the directory with the source files.
- Functionality to make a bundle of all needed files for for example a nightly or distribution of a binary with all needed GRFs and language files.
Note: as this merge moves almost all files, it is recommended to make a backup of your working copy before updating your working copy.
|
|
move the low level network functions to network/core, so they can be reused by the masterserver and website-serverlist-updater.
|
|
sync code)
|
|
respect to autorenew settings. This is only a temporary fix, as the definite fix needs to move the autorenew settings to a per-company settings window.
|
|
but the ClientID (index in _network_client_info). Therefore it was not possible to create a new company if 8 or more clients were connected. Thanks to FlashFF for noticing this bug.
|
|
some (not all) vehicle list windows open for a player, that goes bankrupt would crash the game
-Codechange: closing all windows for a player will now loop all windows and close those, which got the player as caption instead of having a list of windows to close
|
|
call that was
1. never executed before that and even if it would, it
2. could never be executed because if it did OpenTTD would crash
|
|
a multiplayer game.
|
|
bankrupcy, mainly such a
thing happening to a server, and non updated company-information. Also fixes FS#393.
|
|
NETWORK_ACTION_SERVER_MESSAGE so it is
general colour like the rest of the server messages. Spectators speak in grey.
|
|
|
|
The last parameter should point to the end of the buffer (eg lastof(buf))
Courtesy of Tron.
|
|
p->index + 1. To
correctly handle this ci->client_playas - 1 was used all over the code making
it pretty confusing at times. Use proper one-on-one values now. Special handling
is only needed for user-output to not to confuse users.
|
|
windows
|
|
is in CmdPlayerCtrl
|
|
|
|
PlayerID is an
actual playable player (< MAX_PLAYERS) or not.
|
|
PlayerID as
these are used intermixed often.
|
|
PLAYER_SPECTATOR and
put it into player.h where it belongs (instead of map.h)
|
|
IS_INTERACTIVE_PLAYER
|
|
|
|
reflect what it does.
|
|
height bounding
box of the string. Therefore rename the function to GetStringBoundingRect()
and have it return a BoundingRect type of width/height
|
|
removed. (Thanks Rubidium)
|
|
replaces the original colour selection window and bumps the saveload version. Liveries are supported for all vehicles, not just those with 2cc support. Thanks to lakie for GUI inspiration.
|
|
when starting a new player
|
|
from each time the window is redrawn
To do this, the player struct contains an array, that contains the count of each engine type that the player owns
Those arrays are updated each time a vehicle is build or deleted and is calculated on load (it's not saved)
It's possible to access the arrays outside of the autoreplace GUI, so feel free to read from them in other patches as well
|
|
more uniform.
-Cleanup: whitespace alignment of a few tables.
|
|
plain confusing
All the struct holds is a simple colour gradient, so using a simple array with 8 entries is more clear
Also add the names of colour the gradients as enum
|
|
|
|
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.
|
|
64bit happy (michi_cc)
|
|
the offset since 1920
-Codechange: store all year related variables that are _not_ stored in a savegame/transported over the network in the same format as _cur_year
|
|
holding years; rename these variables to match this.
|
|
date.[ch]
-Cleanup: fix whitespace related coding style issues in date.[ch]
-Cleanup: make original comments doxygen compatible and remove/change outdated comments
|
|
to lack of money.
|
|
|
|
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
|