diff options
author | Simon Howard | 2011-10-17 18:13:10 +0000 |
---|---|---|
committer | Simon Howard | 2011-10-17 18:13:10 +0000 |
commit | 854cb8073a336455d0bcd9b6a40d67c1b4226bb3 (patch) | |
tree | c421979a327967662292eab158bd3980fd6235c3 /src/doom/d_net.c | |
parent | d0ada124a2700e4c762c1126e9e13e36b094a614 (diff) | |
download | chocolate-doom-854cb8073a336455d0bcd9b6a40d67c1b4226bb3.tar.gz chocolate-doom-854cb8073a336455d0bcd9b6a40d67c1b4226bb3.tar.bz2 chocolate-doom-854cb8073a336455d0bcd9b6a40d67c1b4226bb3.zip |
Rework net_connect_data_t structure to include WAD and Dehacked
checksums, plus the is_freedoom flag.
Subversion-branch: /branches/v2-branch
Subversion-revision: 2434
Diffstat (limited to 'src/doom/d_net.c')
-rw-r--r-- | src/doom/d_net.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/doom/d_net.c b/src/doom/d_net.c index 5230668f..923d4fcd 100644 --- a/src/doom/d_net.c +++ b/src/doom/d_net.c @@ -38,6 +38,8 @@ #include "g_game.h" #include "doomdef.h" #include "doomstat.h" +#include "w_checksum.h" +#include "w_wad.h" #include "deh_main.h" @@ -209,6 +211,15 @@ static void SaveGameSettings(net_gamesettings_t *settings, // Are we recording a demo? Possibly set lowres turn mode connect_data->lowres_turn = settings->lowres_turn; + + // Read checksums of our WAD directory and dehacked information + + W_Checksum(connect_data->wad_md5sum); + DEH_Checksum(connect_data->deh_md5sum); + + // Are we playing with the Freedoom IWAD? + + connect_data->is_freedoom = W_CheckNumForName("FREEDOOM") >= 0; } void D_InitSinglePlayerGame(net_gamesettings_t *settings) |