summaryrefslogtreecommitdiff
path: root/src/net_client.c
AgeCommit message (Collapse)Author
2015-02-22Fix mistaken uses of memcpy() on overlapping memory.Simon Howard
The source and destination arguments to memcpy() cannot be overlapping as this is undefined behavior. In these situations memmove() must be used instead, and OpenBSD actually throws an error if this is done. Thanks to ryan-sg for reporting this. This fixes #510.
2015-02-20Refactor config file API.Simon Howard
The config file API previously relied on binding config variables using M_BindVariable() which took a void pointer. It occurred to me that if used on a boolean variable, this would be erroneous, but the void pointer would make it impossible to tell. Split this into separate M_Bind{Foo}Variable() functions based on type, which allows for proper type checking on the pointers that are passed. Vaguely related to #509.
2014-05-05Clean up file headers.Simon Howard
This change rewrites and simplifies the copyright headers at the top of all source files: * Remove "Emacs style mode select" line; this line was included in the headers for the originally released source files and appears to be to set the file type for old versions of Emacs. I'm not sure entirely why it was required but I don't think it is any more. * Remove "You should have received a copy of..." text from copyright header. This refers to the old 59 Temple Place address where the FSF headquarters used to be located and is no longer correct. Rather than change to the new address, just remove the paragraph as it is superfluous anyway. This fixes #311. * Remove ---- separator lines so that the file headers are barer and more simplified.
2014-03-24Fix various Clang compiler warnings.Simon Howard
2013-04-03Don't start the game until all players are ready. Send waiting data toSimon Howard
players that are ready for startup progress screens. Subversion-branch: /branches/v2-branch Subversion-revision: 2581
2013-04-02Split game start sequence into two-stage process. This is the firstSimon Howard
stage in refactoring the way that network startup works. Subversion-branch: /branches/v2-branch Subversion-revision: 2580
2013-03-02Complete support for v1.31 behaviors in addition to v1.2, including theJames Haley
ability to save on multiple save slots. Subversion-branch: /branches/v2-branch Subversion-revision: 2561
2012-10-28Merge from trunk.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2537
2012-10-25Switch from MD5 to SHA-1 for network digests.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2530
2012-02-04On Windows, convert the USER and USERNAME environment variables from OEMSimon Howard
codepage to UTF-8 encoding. This should fix the case where the user has a username that includes non-ASCII characters (thanks Alexandre Xavier). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2495
2011-10-19Change MAXPLAYERS to NET_MAXPLAYERS and add back individual MAXPLAYERSSimon Howard
defines for each game. Refactor "waiting screen" data code. Subversion-branch: /branches/v2-branch Subversion-revision: 2441
2011-10-17Rework net_connect_data_t structure to include WAD and DehackedSimon Howard
checksums, plus the is_freedoom flag. Subversion-branch: /branches/v2-branch Subversion-revision: 2434
2011-10-14Convert Hexen to use common main loop code. Working multiplayer!Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2423
2010-12-18Add a M_CheckParmWithArgs function, that behaves like M_CheckParm butSimon Howard
also checks that extra options were provided on the command line (thanks Sander van Dijk). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2223
2010-11-20Remove dependency of network code on Doom code.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 2163
2010-09-18Move Doom-specific code from net_client.c into d_net.c.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 2109
2010-09-14Re-enable multiplayer support for Doom only, in preparation for networkSimon Howard
code refactoring. Subversion-branch: /branches/raven-branch Subversion-revision: 2087
2010-05-03Merge from trunk.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1931
2010-05-01Further sanity checking on use of strcpy() with dehacked stringSimon Howard
replacements. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1928
2009-11-21Merge from trunk.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1737
2009-09-30Change British English spellings to American English, for consistency.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1699
2008-10-31- Delete the "all-in-one" project file and rename the solution file toRussell Rice
chocolate.sln - Create separate msvc projects for all games supported, which work the same as the codeblocks ones - Include fixes (nothing compiler specific, just additions of stdio.h) to build with msvc Subversion-branch: /branches/raven-branch Subversion-revision: 1371
2008-09-11Refactor configuration file system to allow configuration file variablesSimon Howard
to be bound in a distributed fashion around the program. Remove dependency of m_config.c on doom/. Subversion-branch: /branches/raven-branch Subversion-revision: 1222
2008-09-07Move dehacked code to doom/. Split dehacked string replacement code intoSimon Howard
common code and remove dependencies on deh_main.h. Subversion-branch: /branches/raven-branch Subversion-revision: 1210
2008-09-06Remove includes of doomdef.h where possible, move generic parts into topSimon Howard
level. Subversion-branch: /branches/raven-branch Subversion-revision: 1204
2008-02-28Add fixes for MSVC warnings (thanks entryway).Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1095
2008-01-24Fix fast / respawning monsters parameter not exchanged when startingSimon Howard
netgames (thanks GhostlyDeath). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1014
2007-07-07Make drones quit when disconnected from the server.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 933
2007-06-22Replace 35 with TICRATE where appropriate.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 925
2007-05-16Rejig net_cl_new_sync and drone to be in d_net.c instead ofSimon Howard
net_client.c. Fix FEATURE_MULTIPLAYER conditional compile. Move some function definitions in d_net.c into headers. Reorganise the Makefile to split out files into sections based on features. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 875
2007-05-09Fix ticdup.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 874
2006-12-24Javadoc-style self-documenting system for command line options.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 806
2006-11-16Display lowres turning warning message client-side, not throughSimon Howard
server-side broadcast messages. This avoids the possibility of malicious servers that might not send the message. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 755
2006-10-23Add missing header.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 722
2006-10-18Strip out CVS logs, RCS Id tags.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 704
2006-10-14Display drone indicator on the netgame waiting screen if drones are connected.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 699
2006-10-14Display a different message from the normal WAD directory warning ifSimon Howard
players are mixing Freedoom/Original IWADs. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 698
2006-10-11Shut up compiler warnings.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 694
2006-10-06Send deh/wad md5sums to players at the waiting screen. Display a warningSimon Howard
on the waiting screen if the checksums differ from the other players. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 689
2006-10-06Send deh/wad checksums to the server when connecting.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 688
2006-10-05Prevent against deadlock where client and server are both stuck waitingSimon Howard
for each other to send data. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 685
2006-09-29Working drone clients!Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 680
2006-09-21Fix a lot of warnings (for fussy compilers) and one always-true checkRussell Rice
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 641
2006-09-01Sync the -loadgame parameter across all clients connected to a server.Simon Howard
Loading/saving multiplayer games should all work now. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 593
2006-06-03Stop sending data to the server when a connection drops. Print a messageSimon Howard
to the console as well. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 557
2006-05-05Syncronise the -timer/-avg parameters across all clients to avoid desyncs.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 475
2006-04-14Add ability to play using the Vanilla player sync codeSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 470
2006-04-06Use BACKUPTICS everywhere. Remove NET_TICCMD_QUEUE_SIZESimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 462
2006-04-06Sanity check data received by the server. Send version string earlierSimon Howard
in SYN packets to allow the fields that follow to be changed later on if necessary. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 461
2006-03-30Split off timer code into separate i_timer.c file. Add d_dedicated.cSimon Howard
and build chocolate-server, a standalone dedicated server. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 455