pkgsrc/games/xdoom/patches/patch-ao
abs fa022bb0af Update to 1.10nb1
Actually work with the supplied WAD file
        One file-to-patch per patchfile
        Remove strange 'post-patch' substitute X11_BASE phase
        Fix numerous coredumps
        Add a '-h' usage
        Handle the sndserver dying
        Make it work on little endian systems
        Add a '-volume X' flag, and skip all sound code if 0
        Other cleanup in some of the more repellant code areas.
2000-02-03 16:01:14 +00:00

24 lines
560 B
Text

$NetBSD: patch-ao,v 1.1 2000/02/03 16:01:15 abs Exp $
--- linuxdoom-1.10/m_swap.c.orig Mon Dec 22 20:43:51 1997
+++ linuxdoom-1.10/m_swap.c Thu Feb 3 01:33:55 2000
@@ -31,8 +31,8 @@
#include "m_swap.h"
-// Not needed with big endian.
-#ifndef __BIG_ENDIAN__
+// Only needed with big endian.
+#ifdef __BIG_ENDIAN__
// Swap 16bit, that is, MSB and LSB byte.
unsigned short SwapSHORT(unsigned short x)
@@ -42,7 +42,7 @@
}
// Swapping 32bit.
-unsigned long SwapLONG( unsigned long x)
+unsigned int SwapLONG( unsigned int x)
{
return
(x>>24)