Darkvater
dad5d5dd72
(svn r6774) -Codechange: Rename the badly named OWNER_SPECTATOR to PLAYER_SPECTATOR and
...
put it into player.h where it belongs (instead of map.h)
2006-10-14 15:49:43 +00:00
Darkvater
15bf48acfd
(svn r6753) -Codechange: Move some function declerations from functions.h into network.h
...
and let NetworkDisconnect handle all shutdown related operations.
2006-10-12 14:48:36 +00:00
Darkvater
d983d93732
(svn r6750) -Codechange: Juggle around some header includes as they're only used when
...
networking is enabled.
2006-10-12 14:13:39 +00:00
peter1138
53744881a4
(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.
2006-10-03 16:15:34 +00:00
Darkvater
cb4e99ddfb
(svn r6170) -Feature: save max_companies/clients/spectators in the config file.
2006-08-27 10:49:43 +00:00
rubidium
d5b6216c3d
(svn r5928) -Cleanup: remove ConvertIntDate and use ConvertYMDToDate as ConvertIntDate was only called with Years.
2006-08-16 12:07:24 +00:00
rubidium
8aa76f306d
(svn r5915) -Cleanup: some variables were named *_date while they were only holding years; rename these variables to match this.
2006-08-15 14:52:17 +00:00
rubidium
243872b4fd
(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
2006-08-14 14:21:15 +00:00
tron
2b27073156
(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectacular
2006-06-27 21:25:53 +00:00
tron
95d009bde8
(svn r5298) Hide function declarations and remove function stubs which aren't needed in the !ENABLE_NETWORK case
2006-06-17 14:11:26 +00:00
tron
c8f6c4ef2f
(svn r5297) Check the interface flags if IFF_BROADCAST is set before asking for the broadcast address
2006-06-17 13:25:22 +00:00
tron
5db6c57bea
(svn r5295) Handle a quirk in the Windows interface detection code and fix a typo in r5293 (thanks to Darkvater for testing)
2006-06-17 12:11:17 +00:00
tron
670e47eec3
(svn r5293) -Fix: Not all network interfaces are capable of broadcasting. Don't record those which aren't
...
-Fix: Not all networks are /24. Generate proper broadcast addresses for non-/24 nets
2006-06-17 10:24:20 +00:00
tron
bdf64588d3
(svn r5292) -Fix: When using SIOCGIFCONF to detect network interfaces accomodate for the fact that struct sockaddr doesn't have fixed size in all implementations
2006-06-17 08:16:58 +00:00
tron
0a72639c2d
(svn r5210) Many small changes which piled up: const, unsigned, variable scope, CSE for readability, DeMorgan, if cascades -> switch, whitespace, parentheses, bracing, misc.
2006-06-10 08:37:41 +00:00
Darkvater
ed96dcd868
(svn r4521) - Fix: be consistent about the size of the player-name in MP. This hopefully fixes a crash on lesser OS's (eg Win98). Use ttd_strlcpy() to just copy over strings and properly terminate them because different implementations of snprintf() behave differently. Courtesy of TrueLight
2006-04-22 09:46:31 +00:00
Darkvater
4e743232de
(svn r4268) - Delete the network-copy of the Patches struct as it is not needed anymore. All relevant patch-settings that are changed by a network-game are those that are saved with a savegame, so these are not affected for loaded games (since Patches are saved with them). Also there is a distinction between in-game patch settings and default patch settings and this is not affected in MP. Thus this temp copy can be removed.
2006-04-03 19:09:20 +00:00
Darkvater
7d232cf978
(svn r4267) - Fix (r4241): also validate the error number that a client receives from a server, and encapsulate this functionality into GetNetworkErrorMsg().
2006-04-03 18:31:01 +00:00
tron
84fb96fe85
(svn r3511) More whitespace ([FS#46] by Rubidium)
2006-02-01 07:36:15 +00:00
Darkvater
f2448ebfd4
(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.
2006-01-31 22:16:15 +00:00
Darkvater
bb49381cd3
(svn r3470) - Fix: plug a memleak in _network_host_list.
2006-01-29 18:34:43 +00:00
Darkvater
2b287a9e72
(svn r3429) - Feature (Followup): Change the gamelist window to accomodate for the new information.
2006-01-25 19:03:50 +00:00
Darkvater
78fa9c7393
(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.
2006-01-25 18:11:06 +00:00
peter1138
e78997fdfd
(svn r3409) - Change the server advertisement interval to use the frame counter instead
...
of game days. This allows a paused server to continue to advertise itself.
This also fixes advertising for games that start before 1922.
2006-01-19 17:50:40 +00:00
Darkvater
a292621b14
(svn r3407) - Feature: Kick and ban now with IP numbers.
2006-01-19 15:58:57 +00:00
tron
f7abff5f96
(svn r3181) -Bracing
...
-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
2005-11-14 19:48:04 +00:00
tron
d975abc96c
(svn r2899) -Fix: Several format string vulnerabilities and buffer overflows in the network code
2005-08-28 12:24:57 +00:00
ludde
bb1e1f2b5f
(svn r2755) Fix: Fix a desync issue with autoreplace
2005-07-29 21:55:49 +00:00
tron
a227065ab7
(svn r2701) Insert Id tags into all source files
2005-07-24 14:12:37 +00:00
tron
559babcdc9
(svn r2673) Include functions.h directly, not globally via openttd.h
2005-07-22 07:02:20 +00:00
tron
284d9ed7fb
(svn r2663) Include variables.h only in these files which need it, not globally via openttd.h
2005-07-21 18:44:27 +00:00
ludde
bd974bb443
(svn r2590) Fix: [network] Fixed NetworkHandleLocalQueue
2005-07-16 14:29:36 +00:00
ludde
8ff1f8c526
(svn r2589) Fix: [network] Fixed static variable that wasn't initialized. Would stop the sync checking from working in some cases.
2005-07-16 12:59:23 +00:00
ludde
f12b3a0c18
(svn r2588) Codechange: Remove PLAYER_SEED_RANDOM
2005-07-16 12:30:03 +00:00
ludde
71f9078bdd
(svn r2583) Move OS specific code out of misc.c
...
Added support for Mersenne Twister random number generator (not implemented in network yet)
Wrap player randoms around #ifdef
2005-07-15 20:29:06 +00:00
ludde
3e62457107
(svn r2564) Fix: Fixed conceptual issue in network_gui.c. AllocateName is not meant to be used by GUI-code, because it modifies the "game-state".
...
Added a way to bind a C-string to an openttd string which doesn't modify the game state.
2005-07-14 09:43:59 +00:00
tron
43f7974f6d
(svn r2405) Simplify a few '? true : false' and '? false : true', especially the latter is confusing
2005-06-04 07:35:12 +00:00
truelight
143dd26ef5
(svn r2337) -Fix: NetworkUDPRemoveAdvertise wasn't fully correct (which made Darkvater go crazy ;))
2005-05-17 16:01:19 +00:00
Darkvater
d102d0c26d
(svn r2243) -Fix: Rework of console. Use 'help command|variable' to get help about it. You can assign variables with =, ++, --, or just new value. Console parser is now lenient towards typed spaces, and more robust in general (at least readable). Removed the 'set' command, instead implemented all such variables as 'variables'.
...
- Some variables are really special and cannot be assigned normally, use their callback procedure for assignment/querying. This commit also obsoletes "[1172804] Console set command cleanup"
2005-05-02 15:52:19 +00:00
Darkvater
5109df6f55
(svn r2157) - Feature (request): [ 1166978 ] Focus keyboard on input-box in Multiplayer Menu
...
- Feature: If the to be started server is using a password, draw a red '*' after the set password button to remind the user.
2005-04-06 18:44:34 +00:00
Darkvater
d35f965c47
(svn r2126) - Fix : #2 Fix compilation with network disabled, and comment out some of the warnings (unused function) (I missed this out the last commit, sorry)
2005-04-02 15:08:31 +00:00
truelight
d97ff67129
(svn r2108) -Fix: the server now also unpause when a client desyncs or something
2005-03-30 08:50:34 +00:00
truelight
508738f836
(svn r2106) -Fix: improved the network-join algoritm, it is now a bit more stable
...
-Add: added 'pause_on_join' and 'max_join_time' for MP games, where you
can auto-pause the game when a client wants to join the game. This to
avoid connection losses because of big maps (200+ trains). (with tnx to
#openttdcoop for the ideas and testing)
2005-03-29 19:10:13 +00:00
tron
34f14e657d
(svn r1970) Fix some warnings which Cygwin showed
2005-03-09 11:49:34 +00:00
tron
552d84884f
(svn r1836) Clean up some strange constructs concerning socket options
2005-02-07 09:56:16 +00:00
tron
eed181245d
(svn r1833) byte -> char transition: the rest
2005-02-06 22:25:27 +00:00
tron
b2ae5b197e
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
2005-02-06 13:41:02 +00:00
tron
0381073e56
(svn r1813) Declare functions implemented in strings.c in their own shiny new header (though i think some of these function don't belong into strings.c)
2005-02-06 08:18:00 +00:00
tron
f0f85a7ef3
(svn r1803) Move debugging stuff into files of it's own
2005-02-05 15:58:59 +00:00
tron
e5cd6b6193
(svn r1596) Add some more statics
2005-01-22 22:47:58 +00:00