foxygit / doom Log in
commit 505de5022c942d06d9d508578289ec9f23df57cd
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Thu Jan 19 00:17:01 2006 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Thu Jan 19 00:17:01 2006 +0000

    Remove now-redundant note about structure packing.

    Subversion-branch: /trunk/chocolate-doom
    Subversion-revision: 299
---
 src/p_saveg.c | 21 +++++----------------
 1 file changed, 5 insertions(+), 16 deletions(-)

diff --git a/src/p_saveg.c b/src/p_saveg.c
index 22e9646a..7391fe4b 100644
--- a/src/p_saveg.c
+++ b/src/p_saveg.c
@@ -1,7 +1,7 @@
 // Emacs style mode select   -*- C++ -*-
 //-----------------------------------------------------------------------------
 //
-// $Id: p_saveg.c 298 2006-01-19 00:09:20Z fraggle $
+// $Id: p_saveg.c 299 2006-01-19 00:17:01Z fraggle $
 //
 // Copyright(C) 1993-1996 Id Software, Inc.
 // Copyright(C) 2005 Simon Howard
@@ -22,6 +22,9 @@
 // 02111-1307, USA.
 //
 // $Log$
+// Revision 1.6  2006/01/19 00:17:01  fraggle
+// Remove now-redundant note about structure packing.
+//
 // Revision 1.5  2006/01/19 00:09:20  fraggle
 // Add functions to r/w structures to the savegame buffer, rather than
 // copying the raw structures.  This way, we read and write to the DOS
@@ -49,7 +52,7 @@
 //-----------------------------------------------------------------------------

 static const char
-rcsid[] = "$Id: p_saveg.c 298 2006-01-19 00:09:20Z fraggle $";
+rcsid[] = "$Id: p_saveg.c 299 2006-01-19 00:17:01Z fraggle $";

 #include "dstrings.h"
 #include "deh_main.h"
@@ -1455,20 +1458,6 @@ typedef enum
 } thinkerclass_t;


-// There is a small issue with the packing of mobjs.  The 'mapthing'
-// field in mobj_t is 10 bytes long.  Watcom packed this without any
-// alignment issues; gcc aligns the fields to 4-byte boundaries.  This
-// means that the size of the mobj_t structure is 2 bytes extra than
-// in Vanilla Doom.
-//
-// These functions have a temporary fix for this.  We copy the tracer
-// field back two bytes to manually pack the data.  This is obviously
-// horrible, non compiler-portable, not endian safe, etc. etc.
-//
-// This will be properly fixed once I rework the savegame code.
-// The correct size of the mobj_t structure is 154 bytes.
-
-
 //
 // P_ArchiveThinkers
 //