From cb99b77e5e556b001eb7ac6d29eb350992805404 Mon Sep 17 00:00:00 2001 From: mycroft Date: Thu, 22 Aug 2002 05:29:50 +0000 Subject: Fix ridiculously stupid unaligned accesses. --- games/xdoom/distinfo | 3 ++- games/xdoom/patches/patch-bb | 27 +++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 games/xdoom/patches/patch-bb diff --git a/games/xdoom/distinfo b/games/xdoom/distinfo index caf76df488a..c5854fc26c6 100644 --- a/games/xdoom/distinfo +++ b/games/xdoom/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.7 2002/08/22 05:08:30 mycroft Exp $ +$NetBSD: distinfo,v 1.8 2002/08/22 05:29:50 mycroft Exp $ SHA1 (doomsrc.zip) = ffd07e0bd95b7c6ba0cd003fb6ff5ebd535d6f99 Size (doomsrc.zip) = 362698 bytes @@ -31,3 +31,4 @@ SHA1 (patch-ax) = 7d046d27880b3e7d6fd99a9d8ed029f7e9f52544 SHA1 (patch-ay) = 8c6cebc66117e9a4493e3c83ce29a16d60374179 SHA1 (patch-az) = 48690eebd65de95b7ce4fd73390b46ffd6a58085 SHA1 (patch-ba) = d8e41ed9d277145cd776ca5dc18e1c82cbefc8b7 +SHA1 (patch-bb) = 28dbedb6209466f5b9ad226e2a5583c3881acae1 diff --git a/games/xdoom/patches/patch-bb b/games/xdoom/patches/patch-bb new file mode 100644 index 00000000000..7cadf6ccab6 --- /dev/null +++ b/games/xdoom/patches/patch-bb @@ -0,0 +1,27 @@ +$NetBSD: patch-bb,v 1.1 2002/08/22 05:29:51 mycroft Exp $ + +--- linuxdoom-1.10/r_things.c.orig Mon Dec 22 21:00:50 1997 ++++ linuxdoom-1.10/r_things.c Mon Aug 22 05:26:23 2022 +@@ -179,7 +179,6 @@ + char** check; + int i; + int l; +- int intname; + int frame; + int rotation; + int start; +@@ -210,13 +209,12 @@ + memset (sprtemp,-1, sizeof(sprtemp)); + + maxframe = -1; +- intname = *(int *)namelist[i]; + + // scan the lumps, + // filling in the frames for whatever is found + for (l=start+1 ; l