summaryrefslogtreecommitdiff
path: root/games/xdoom/patches
diff options
context:
space:
mode:
authormycroft <mycroft@pkgsrc.org>2002-08-22 05:29:50 +0000
committermycroft <mycroft@pkgsrc.org>2002-08-22 05:29:50 +0000
commitcb99b77e5e556b001eb7ac6d29eb350992805404 (patch)
tree75270d12b7172bfcc9bfd673b0e49b85d904e0d4 /games/xdoom/patches
parent76430f4493573c3ef29fe0973e6c80c612709c4c (diff)
downloadpkgsrc-cb99b77e5e556b001eb7ac6d29eb350992805404.tar.gz
Fix ridiculously stupid unaligned accesses.
Diffstat (limited to 'games/xdoom/patches')
-rw-r--r--games/xdoom/patches/patch-bb27
1 files changed, 27 insertions, 0 deletions
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<end ; l++)
+ {
+- if (*(int *)lumpinfo[l].name == intname)
++ if (memcmp(lumpinfo[l].name, namelist[i], 4) == 0)
+ {
+ frame = lumpinfo[l].name[4] - 'A';
+ rotation = lumpinfo[l].name[5] - '0';