Commit graph

229 commits

Author SHA1 Message Date
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
Simon Howard
8d9ee8259d Global "configdir" variable with directory to store config files in.
Create a function to find the filename for a savegame slot. Store
savegames in the config dir.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 202
2005-10-16 01:18:10 +00:00
Simon Howard
6dfceb2ce6 Fix pink icon on startup
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 201
2005-10-15 22:50:57 +00:00
Simon Howard
5040fc2400 Add warning message for WADs with FF_START or SS_START in, suggesting
the -merge option.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 200
2005-10-15 17:57:47 +00:00
Simon Howard
72a451c58b Mention dehacked banners
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 199
2005-10-15 17:42:07 +00:00
Simon Howard
ef22ea7ed1 Print startup banners which have been modified by dehacked.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 198
2005-10-15 17:38:49 +00:00
Simon Howard
99dddb946d Add blackbug note
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 197
2005-10-15 17:09:11 +00:00
Simon Howard
1ba7b1ddfd Fix MIDI music not pausing when using SDL_mixer's native MIDI playback.
The SDL_mixer native MIDI code does not pause music properly - use
a workaround of setting the volume to 0.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 196
2005-10-15 16:58:31 +00:00
Simon Howard
02a491c087 Map mouse buttons correctly.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 195
2005-10-15 15:59:14 +00:00
Simon Howard
506138915b Update NEWS with info about bugs fixed.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 194
2005-10-15 15:47:50 +00:00
Simon Howard
21510ef913 Check the return code from SDL_LockSurface to ensure a surface has been
properly locked. Fixes crash when switching applications while running
fullscreen.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 193
2005-10-15 15:45:03 +00:00
Simon Howard
1d4f958757 Fix Doom 1 skies
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 192
2005-10-13 23:12:30 +00:00
Simon Howard
29571c16ef Fix logic for lost soul bounce
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 191
2005-10-13 22:23:55 +00:00