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/doom/d_net.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/doom') 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) -- cgit v1.2.3