Commit graph

241 commits

Author SHA1 Message Date
Simon Howard
3fcdb6dc18 Fixes for big endian machines (thanks locust)
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 255
2006-01-05 02:48:03 +00:00
Simon Howard
a78ddf0eca Specify signed char explicitly for ticcmd_t fields.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 254
2006-01-05 02:42:58 +00:00
Simon Howard
d23401d19c Move I_InitGraphics call to be invoked earlier in D_DoomMain. Call the
NET_WaitForStart function to wait for a start signal in network games.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 253
2006-01-02 21:52:06 +00:00
Simon Howard
fba617a6b4 Restructure the waiting screen code. Establish our own separate event
loop while waiting for the game to start, to avoid affecting the original
code too much. Move some _gui variables to net_client.c.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 252
2006-01-02 21:50:26 +00:00
Simon Howard
dd2339bca5 fix client connected function
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 251
2006-01-02 21:48:37 +00:00
Simon Howard
58656316f7 Create NET_SV_Shutdown function to shut down the server. Call it
when quitting the game. Print the IP of the server correctly when
connecting.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 250
2006-01-02 21:04:10 +00:00
Simon Howard
f65633b5f5 Change AddrToString function to use an internal static buffer, for
ease of use.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 249
2006-01-02 21:02:16 +00:00
Simon Howard
6b56827d76 Clear the screen AFTER initialising the loading disk buffer, so that
bits of loading disk are not visible on the initial screen melt.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 248
2006-01-02 20:27:45 +00:00
Simon Howard
27785be7f5 Add a "-client" option to test connecting to a local server.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 247
2006-01-02 20:14:29 +00:00
Simon Howard
0a14b6d7b6 Fix connect timeout and shutdown client properly if we fail to connect.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 246
2006-01-02 20:14:07 +00:00
Simon Howard
33fe9b40bb Refer to connected clients by their AddrToString() output rather than just
the pointer to their struct. Listen for IP connections as well as
loopback connections.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 245
2006-01-02 20:13:06 +00:00
Simon Howard
693828adb2 Rename i_net_module -> net_sdl_module. Fix the AddrToString method.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 244
2006-01-02 20:11:49 +00:00
Simon Howard
febe55b727 Remove test code
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 243
2006-01-02 17:24:40 +00:00
Simon Howard
3acf026897 Fix packet not freed back after being sent.
Code to disconnect clients from the server side.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 242
2006-01-02 00:54:17 +00:00
Simon Howard
cdbc892c80 Encapsulate the event queue code properly. Add a D_PopEvent function
to read a new event from the event queue.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 241
2006-01-02 00:17:42 +00:00
Simon Howard
7f731a1064 Make functions static. Remove unused variable.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 240
2006-01-02 00:06:30 +00:00
Simon Howard
c1a25efc7e Neater prefixes: NET_Client -> NET_CL_. NET_Server -> NET_SV_.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 239
2006-01-02 00:00:08 +00:00
Simon Howard
93ac1b74ab Client disconnect code
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 238
2006-01-01 23:54:31 +00:00
Simon Howard
34c3dd253f Remove GS_WAITINGSTART gamestate. This will be independent of the main
loop to avoid interfering with the main game code too much.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 237
2006-01-01 23:53:15 +00:00
Simon Howard
0caa1149ff String read/write functions
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 236
2006-01-01 23:51:41 +00:00
Simon Howard
75270ad54a Fix client code to correctly send reply to server on connection.
Add "waiting screen" while waiting for the game to start.
Hook in the new networking code into the main game code.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 235
2005-12-30 18:58:22 +00:00
Simon Howard
694292fa55 Millisecond clock function
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 234
2005-12-30 18:50:53 +00:00
Simon Howard
f459280f96 Working client connect code
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 233
2005-12-29 21:29:55 +00:00
Simon Howard
37f611e199 Add initial client/server connect code. Reorganise sources list in
Makefile.am.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 232
2005-12-29 17:48:25 +00:00
Simon Howard
68e5d09795 Automatically initialise the address table
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 231
2005-12-29 17:47:47 +00:00
Simon Howard
ef65489cb6 Catch SDL_QUIT event on ENDOOM display
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 230
2005-11-17 09:41:24 +00:00
Simon Howard
59c7b84465 Add foundation code for the new networking system
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 229
2005-10-30 19:56:15 +00:00
Simon Howard
1e9ce0901c Update ChangeLog
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 227
2005-10-29 21:50:08 +00:00
Simon Howard
93695f4abf 0.1.2
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 226
2005-10-29 21:48:55 +00:00
Simon Howard
5206b75d90 Fix help screen orderings and skull positions to make Chocolate Doom
behave exactly like the original executables.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 225
2005-10-29 21:38:55 +00:00
Simon Howard
f74d7301e0 Final Doom teleport logic was backwards
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 224
2005-10-26 00:56:40 +00:00
Simon Howard
9f35887016 Allow the game version to emulate to be specified from the command line
and set compatibility options accordingly.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 223
2005-10-24 18:50:39 +00:00
Simon Howard
b9be9f99ef Drastically refactor the WAD merging code. Allow multiple replacements
of the same sprite in a PWAD (fixes Scientist 2)

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 222
2005-10-23 20:22:35 +00:00
Simon Howard
f12587122d Reproduce the behavior when playing a sound at a sample rate which
is not 11025 or 22050Hz. This is to "fix" a bug in Scientist 2:
however, it does not fix the playing of sounds, only silence
them. I tested Vanilla Doom and this is how it behaves when it
receives sound effects with odd sample rates. The bug here is
actually in the Scientist 2 WAD, which has sound effects that
have the wrong sample rate.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 221
2005-10-23 18:39:45 +00:00
Simon Howard
3cd87afdf4 Update ChangeLog
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 219
2005-10-18 19:06:31 +00:00
Simon Howard
c29a4e4d97 0.1.1
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 218
2005-10-18 19:05:18 +00:00
Simon Howard
2eec245df7 Update ChangeLog
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 217
2005-10-18 12:32:55 +00:00
Simon Howard
cd872b459a Update NEWS
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 216
2005-10-18 09:13:07 +00:00
Simon Howard
cd97b54231 DEH_CheckCommandLine -> DEH_Init, for consistency with other Init
functions

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 214
2005-10-17 23:48:05 +00:00
Simon Howard
148c5fb777 Add a "loading" message for each dehacked patch we load, to be orthogonal
to the WAD loading code

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 213
2005-10-17 23:16:09 +00:00
Simon Howard
1fa73503ef Fix "Monsters Infight"
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 212
2005-10-17 22:07:26 +00:00
Simon Howard
a0ab194747 Add note that the "Monsters Infight" setting is not supported.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 211
2005-10-17 21:20:27 +00:00
Simon Howard
7e57759e2e Ignore comments in dehacked files.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 210
2005-10-17 21:14:31 +00:00
Simon Howard
9c4ef6cc89 Dehacked Misc support: Controls for the armor and armor class set when
using the ammo cheats.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 209
2005-10-17 21:09:01 +00:00
Simon Howard
1d597be89e Dehacked Misc support: Max soulsphere, Soulsphere+Megasphere health bonus
values, God mode health value

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 208
2005-10-17 21:02:57 +00:00
Simon Howard
ae8ca20a1d Add dehacked "Misc" implementations for max armor+health, blue+green
armor classes

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 207
2005-10-17 20:49:42 +00:00
Simon Howard
4dc1ca199d Start of Dehacked 'Misc' section support. Initial Health+Bullets,
and bfg cells/shot are supported.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 206
2005-10-17 20:27:05 +00:00
Simon Howard
eb11f9bfbb Guard against multiple video shutdowns better. Fix crash due to improper
screen clear at startup.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 205
2005-10-17 19:46:22 +00:00
Simon Howard
860c6b8691 Fix the '-cdrom' command-line option.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 204
2005-10-16 20:55:50 +00:00
Simon Howard
e2c0f46e4f Set the default number of channels to a more sensible 8
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 203
2005-10-16 16:16:03 +00:00