From 854cb8073a336455d0bcd9b6a40d67c1b4226bb3 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 17 Oct 2011 18:13:10 +0000 Subject: 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 --- src/heretic/d_net.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/heretic') 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) -- cgit v1.2.3