pkgsrc/games/xdoom/patches/patch-af
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

21 lines
733 B
Text

$NetBSD: patch-af,v 1.4 2000/02/03 16:01:15 abs Exp $
--- linuxdoom-1.10/g_game.c.orig Mon Dec 22 20:35:29 1997
+++ linuxdoom-1.10/g_game.c Thu Feb 3 01:33:47 2000
@@ -1586,12 +1586,14 @@
gameaction = ga_nothing;
demobuffer = demo_p = W_CacheLumpName (defdemoname, PU_STATIC);
- if ( *demo_p++ != VERSION)
+ if ( *demo_p/100 != VERSION/100 || *demo_p%100 > VERSION%100 )
{
- fprintf( stderr, "Demo is from a different game version!\n");
+ fprintf( stderr, "Demo is from a different game version (%.2f / %.2f)!\n",
+ demo_p[-1]/(float)100, VERSION/(float)100);
gameaction = ga_nothing;
return;
}
+ ++demo_p;
skill = *demo_p++;
episode = *demo_p++;