summaryrefslogtreecommitdiff
path: root/src/heretic
diff options
context:
space:
mode:
authorSimon Howard2011-10-17 18:13:10 +0000
committerSimon Howard2011-10-17 18:13:10 +0000
commit854cb8073a336455d0bcd9b6a40d67c1b4226bb3 (patch)
treec421979a327967662292eab158bd3980fd6235c3 /src/heretic
parentd0ada124a2700e4c762c1126e9e13e36b094a614 (diff)
downloadchocolate-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/heretic')
-rw-r--r--src/heretic/d_net.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/heretic/d_net.c b/src/heretic/d_net.c
index 440944eb..1eb88b67 100644
--- a/src/heretic/d_net.c
+++ b/src/heretic/d_net.c
@@ -34,6 +34,7 @@
#include "i_timer.h"
#include "i_video.h"
#include "doomdef.h"
+#include "w_checksum.h"
#include "deh_main.h"
@@ -173,6 +174,13 @@ static void SaveGameSettings(net_gamesettings_t *settings,
connect_data->gamemission = gamemission;
connect_data->lowres_turn = false;
+
+ // Read checksums of our WAD directory and dehacked information
+
+ W_Checksum(connect_data->wad_md5sum);
+ DEH_Checksum(connect_data->deh_md5sum);
+
+ connect_data->is_freedoom = 0;
}
void D_InitSinglePlayerGame(net_gamesettings_t *settings)