Age | Commit message (Collapse) | Author |
|
move the low level network functions to network/core, so they can be reused by the masterserver and website-serverlist-updater.
|
|
shifted up, and
the current economy numbers were moved to economy[0]. This was done in one
memmove which worked because old_economy was behind cur_economy in the struct.
Do not rely on this functionality...
|
|
subsidies with that town as source/destination, resulting in an assertion when displaying the Subsidies Window.
|
|
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.
|
|
before starting to load other vehicles.
|
|
bankrupt.
|
|
for once, and always notify the station the vehicle was present. (Maedhros)
|
|
newstations
|
|
|
|
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
|
|
bankrupcy, mainly such a
thing happening to a server, and non updated company-information. Also fixes FS#393.
|
|
correctness.
-Codechange: 'quited' is not a word, use has_quit instead for NetworkClientState
|
|
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
|
|
|
|
PlayerID is an
actual playable player (< MAX_PLAYERS) or not.
|
|
PLAYER_SPECTATOR and
put it into player.h where it belongs (instead of map.h)
|
|
IS_INTERACTIVE_PLAYER
|
|
order is a transfer order, rather than to any unload order. This fixes an issue where the AI doesn't know that a route is unprofitable.
|
|
- If the NewGRF sound effect chosen doesn't exist, then ignore it.
- Play load/unload sound if provided.
|
|
Now the num_engines array is updated for the buying player when merging two players
The incorrect caches aren't saved so no savegames will contain incorrect data due to this bug
|
|
more uniform.
-Cleanup: whitespace alignment of a few tables.
|
|
was given
the maximum amount of money so everything can be removed for sure. However
if first rails are removed (or property in general that *gives* money
when demolished, the player's money would overflow. Thanks for noticing Rubidium.
|
|
{' -> '} else {', tabs between code and comment, etc.
|
|
routines still use ->player_money.
Because of this, when a player went bankrupt, still not all stuff was removed.
|
|
a valid XXX, unless there are none to pick from. Then NULL is returned.
|
|
(or, will do that).
It isn't the best name, but we couldn't find any better.
This unifies the pool-system even more.
|
|
invalid ones
-Codechange: use IsValidXXX where ever possible
Note: both changes to prepare for new pool system, which needs those changes.
For every pool there are 2 ugly lines, which will be removed when done
implementing new pool system.
Based on FS#13 by blathijs, partly implemented.
|
|
whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
|
|
-Cleanup: use TownID and StationID for two instances of uint16
|
|
|
|
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
|
|
BASE_YEAR when comparing _cur_year with a 'full' year.
-Cleanup: replace some magic '1920' values with BASE_YEAR.
|
|
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.
|
|
|
|
|
|
DeliverGoodsToIndustry to not work as intended. Note: write something better for this entire function
|
|
serving a station has been deleted.
-Negative side effect: upon loading old games, stations whose last vehicle was a station have (temporarily) lower ratings.
-Positive side effect: station.h no longer includes vehicle.h (breaks the station.h->vehicle.h->rail.h chain)
|
|
coordinates of the tile to operate on - to a TileIndex
Remove DoCommandByTile(), because now it does the same as DoCommand()
|
|
|
|
because the rest of the code calls it Comapany HQ. Moved it to unmovable_cmd.c because CompanyHQ is an unmovable and has nothing to do with economy.
|
|
variables instead of using the general uint16-type. StationID was added for depots, waypoints and stations where necessary. We probably need to change GetDepot(), IsDepotIndex(), IsStationIndex(), GetWaypoint() and IsWaypointIndex() as well to use StationID.
|
|
variables instead of using the general byte-type.
|
|
SL_MAX_VERSION
|
|
|
|
add consts, reduce indentation level by short-circuit logic, convert if cascades to switch, whitespace, bracing, plus some minor stuff
|
|
- Don't treat non-booleans as booleans
- Reduce variable scope
- Bracing
- Use DeMorgan's law to make conditionals easier to read
- if cascade -> switch
- Replace some magic numbers by symbolic names
- Avoid assignments within other statements
|
|
newgrf_engine.[ch], and add the new files to project files.
|
|
|