[BACK]Return to patch-src_doomdata.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / games / doomlegacy / patches

File: [cvs.NetBSD.org] / pkgsrc / games / doomlegacy / patches / Attic / patch-src_doomdata.h (download)

Revision 1.1, Tue May 19 11:20:16 2020 UTC (3 years, 11 months ago) by micha
Branch: MAIN
CVS Tags: pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2

games/doomlegacy: Update to 1.48.4

pkgsrc changes:
- Patches for NetBSD support removed (merged upstream)
- Define "SOLARIS" for SunOS based operating systems
- MESSAGE replaced by file "share/doc/doomlegacy/INSTALL.pkgsrc"
- Man page is now installed in section 6
- Patch to disable launcher replaced by startscript
  (upstream suggested to use an unsupported option for this purpose)
- Patch for extended node support added (Feature request #95)
  Supported formats: DeeP V4, ZDoom uncompressed, ZDoom compressed
  Without this patch the engine may crash with unsupported node formats
- Patch for local blockmap creation added
  Command line option "-blockmap" added for activation (no automatic mode)

The extended node and blockmap patches allow to play modern PWADs like NOVA III
and Lost Civilization.

Upstream changelog since 1.47.2 is very long, refer to this page:
http://doomlegacy.sourceforge.net/docs/whatsnew.html

$NetBSD: patch-src_doomdata.h,v 1.1 2020/05/19 11:20:16 micha Exp $

Refer to subsectors with 32-Bit values (required for extended nodes).
Upstream feature request:
https://sourceforge.net/p/doomlegacy/feature-requests/95/

--- src/doomdata.h.orig	2020-04-20 10:32:30.000000000 +0000
+++ src/doomdata.h
@@ -203,7 +203,8 @@ typedef struct
 // BSP node structure.
 
 // Indicate a leaf.
-#define NF_SUBSECTOR    0x8000
+// [MB] 2020-04-22: Changed to 32-Bit for extended nodes
+#define NF_SUBSECTOR    0x80000000
 
 // WAD lump structure
 typedef struct
@@ -218,7 +219,8 @@ typedef struct
   // clip against view frustum.
   int16_t       bbox[2][4];
 
-  // If NF_SUBSECTOR its a subsector,
+  // [MB] 2020-04-22: NF_SUBSECTOR no longer matches here!
+  // If MSB is set it's a subsector,
   // else it's a node of another subtree.
   uint16_t      children[2];