Commit Graph

139 Commits (f2fd789cc635f6bdce0d52803676ed74db866616)

Author SHA1 Message Date
Darkvater 0ca42cbd44 (svn r6750) -Codechange: Juggle around some header includes as they're only used when
networking is enabled.
18 years ago
peter1138 b32397946d (svn r6628) - Feature: Add the ability to pause a server if not enough players are connected. The setting for this is 'min_players' and can be set in the config and via the console. If the number of players drops below this number, the server will pause the game. 18 years ago
Darkvater d9e9f367d9 (svn r6471) -Fix (r6450): ConPatch was moved from network-only, but the function was
still inside the ENABLE_NETWORK define. Thanks nycom.
18 years ago
Darkvater c34691d2b0 (svn r6450) -Feature: Make the 'patch' console command available for offline use and for
online use for player-based settings.
18 years ago
rubidium 8e0855aafd (svn r6435) -Fix (FS#340): show an error message when executing 'scrollto x' with x < 0 or >= MapSize() instead of asserting later on. 18 years ago
truelight 505566da5c (svn r6047) -Codechange: FOR_ALL now _only_ loops valid items, and skips 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.
18 years ago
rubidium db397d5a75 (svn r6002) -Cleanup: remove the now redundant BASE_YEAR constant. 18 years ago
truelight 7abad2b20e (svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
- New optional landscape generator (TerraGenesis Perlin)
  - Load heightmaps (either BMP or PNG)
  - Progress dialog while generating worlds (no longer a 'hanging' screen)
  - New dialogs for NewGame, Create Scenario and Play Heightmap
    - Easier to configure your landscape
    - More things to configure (tree-placer, ..)
  - Speedup of world generation
  - New console command 'restart': restart the map EXACTLY as it was when you
      first started it (needs a game made after or with this commit)
  - New console command 'getseed': get the seed of your map and share it with
      others (of course only works with generated maps)
  - Many new, world generation related, things
  - Many internal cleanups and rewrites
  Many tnx to those people who helped making this:
     Belugas, DaleStan, glx, KUDr, RichK67, Rubidium, and TrueLight (alfabetic)
  Many tnx to those who helped testing:
     Arnau, Bjarni, and tokai (alfabetic)
  And to all other people who helped testing and sending comments / bugs
  Stats: 673 lines changed, 3534 new lines, 79 new strings
18 years ago
rubidium c55962f8a2 (svn r5916) -Cleanup: use MIN_YEAR/MAX_YEAR for the year boundaries and BASE_YEAR when comparing _cur_year with a 'full' year.
-Cleanup: replace some magic '1920' values with BASE_YEAR.
18 years ago
rubidium dc54e608e3 (svn r5915) -Cleanup: some variables were named *_date while they were only holding years; rename these variables to match this. 18 years ago
rubidium ea6ab4ce26 (svn r5909) -Fix (r5908): silence signedness warning 18 years ago
Darkvater 397a0a32be (svn r5908) - Codechange (r5903): Move the retrieval of the new value of a patch to console_cmds.c, so there is no need for that function in settings.c 18 years ago
rubidium 9fc837ad85 (svn r5887) -Cleanup: move date related functions, defines and variables to date.[ch]
-Cleanup: fix whitespace related coding style issues in date.[ch]
-Cleanup: make original comments doxygen compatible and remove/change outdated comments
18 years ago
Darkvater 97c3b5cad8 (svn r5767) - Cleanup: Improve upon the header file mess regarding fios. Move all relevant types from hal.h into fios.h, eliminate the unneccessary passing of a global variable, and extern variables in header files (declare in fios.c and misc_gui.c 18 years ago
belugas e4474db35f (svn r5626) CodeChange : Remove the global _make_screenshot and implement a more flexible mechanism
Simplification of the handling of the main_gui menus,
Removal of repetitions and Hiding the internals of screenshots.
Thanks to glx, Rubidium and Truelight for pointers
18 years ago
tron f4a6051979 (svn r5400) Typo in 5391, spotted by peter1138 18 years ago
tron 772fbda3e3 (svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectacular 18 years ago
tron 5f7a8a3c58 (svn r5265) Replace a dozen bogus uses of strncmp() by strcmp() 18 years ago
tron 5778bfa04a (svn r5264) -Fix: The wrong IP could get unbanned, e.g. 'unban 1.2.3.42' could result in unbanning 1.2.3.4 18 years ago
glx 2233ec0836 (svn r4889) - Codechange: added vehicle count in 'players' console command 18 years ago
glx 6b4d44bc53 (svn r4876) - Fix: company value is an int64, so display it correctly in 'players' console command 18 years ago
glx c118d61e40 (svn r4871) - Fixed off-by-one and added company color displaying in 'players' console command. 18 years ago
celestar 6d40f9cc4f (svn r4828) -Feature (FS#150) Add a new console command "players" that lists current players along with basic stats (ledow) 18 years ago
Darkvater d5fec78798 (svn r4558) - Fix: 'stopall' was moved to debug, so move the function there as well. 18 years ago
Darkvater 65979340de (svn r4518) - Fix: specify the 'stopall' console command as a debug command. Mostly because stopped airplanes in mid-air 1. look funny 2. won't ever budge again. (change of r2449) 18 years ago
celestar 8cbe98a3fd (svn r4259) -[multistop] Fix/Feature/Codechange:
1) Improved the road vehicle allocation (aka slotting) for multistop. Stops can now accept unlimited, er... 256, vehicles.
2) Removed the "wait for stop" feature, because it did not work in practise.
3) Slotting now ignores unreachable stations. Uses NPF at the moment because the old pathfinder cannot do it (yet)
4) Now matter how many vehicles approach a station, they will always be distributed evenly over existing stops.
5) Hopefully the last fundamental change to multistop
19 years ago
celestar 480ea7c671 (svn r3939) -Fix: No longer assume that the number of slots is 2. It was not a problem up to now, but it's not The Right Thing (TM) to do either 19 years ago
celestar db4777c818 (svn r3730) Multistop modifications:
-Codechange: Completely rewritten the slot assignment system. It now consumes less CPU cycles and memory
-Codechange: Increased maximum number of roadstops to 16.
-Fix: Several conditions where a slot becomes unliked from a vehicle
-Codechange: ClearSlot now only takes one parameter, the vehicle
-Feature: Console command 'clearslots' to clear ALL currently assinged slots. debug usage only
-Feature: vehicles that cannot get a slot now wait on the road instead of planlessly blocking stops or circling around
-Codechange: Adjusted debug levels
TODO: Make the slot finder compatible with (a) pathfinder(s).
19 years ago
Darkvater 5f220ff0e2 (svn r3724) - [5.5/6] heh, the patch part got left out of the previous commit, sorry 19 years ago
peter1138 f34971d094 (svn r3593) Fix typo in r3591 19 years ago
Darkvater b8e68df7ff (svn r3591) - Fix: validate the setting of max_companies/spectators through the console. 19 years ago
Darkvater 5502f3bf3d (svn r3500) - Workaround the inaccurate count of spectators/companies that 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. 19 years ago
Darkvater 35c5738689 (svn r3469) - Fix: plug a possible memleak with subsequential strdup's without freeing the previous value and make it possible to ban offline clients 19 years ago
Darkvater 195619a4f9 (svn r3428) - Feature: server_info was left out previous commit. Move some commands about a bit for better logical placement 19 years ago
Darkvater 082aa38f79 (svn r3427) - Feature: Allow seeing and setting the maximum amount of companies and spectators for a server. This can be changed/viewed during runtime as well in the console. 19 years ago
peter1138 98b13cebbd (svn r3411) - Fix: When changing the server password via the console, actually set the password as well as flag whether it is required. 19 years ago
Darkvater 6132d15df9 (svn r3408) - Ok, compile before you commit; sorry (fix previous commit) 19 years ago
Darkvater ad47f3a6a2 (svn r3407) - Feature: Kick and ban now with IP numbers. 19 years ago
Darkvater 16f1af429b (svn r3070) - it doesn't matter where the '.' is found for the IP, if it is found, it is not a normal index when unbanning clients ('\0' should of course be NULL); thx Tron 19 years ago
Darkvater e6ff0a52ac (svn r3069) - CodeChange: now that we have the '|' char, use that as a seperator instead of '\' as was originally intention 19 years ago
Darkvater 8c7e9f00dc (svn r3068) - Feature: make it possible to create a screenshot from the console that is both big and has no console, or any combination of. 19 years ago
Darkvater 7b52c5f6bb (svn r3067) - Feature: allow unbanning players based on banlist-id (as well as IP).
- Feature: 'status' and 'clients' now show the IP of the players
19 years ago
tron 9e85e49ca4 (svn r2987) -Fix: restart_game_date is an UINT16, not a BYTE. Now setting the game restart year via the console should work (Debolaz) 19 years ago
Darkvater b1814daab7 (svn r2945) Add 'del' alias to rm console command 19 years ago
tron 2c62dcef61 (svn r2941) -Feature: Implement the console command rm to remove savegames 19 years ago
tron f02b1f2967 (svn r2899) -Fix: Several format string vulnerabilities and buffer overflows in the network code 19 years ago
tron 647cbd6bdd (svn r2701) Insert Id tags into all source files 19 years ago
tron a4ec4da221 (svn r2672) Move saving/loading related declarations to saveload.h 19 years ago
Darkvater cda6efd919 (svn r2609) - Feature: remove extension from savegames/scenarios when browsing the folders. 19 years ago
tron 1307f90b5e (svn r2535) Tabs 19 years ago