shithub: wl3d

Download patch

ref: f7d52d0cc2c017d4feb2ea916a6afa8426c97bdc
parent: 0c46469f2135819a33663e80657a7c4c521dd66e
author: Konstantinn Bonnet <qu7uux@gmail.com>
date: Sun Feb 26 05:27:31 EST 2017

fix another timing botch and minor manpage corrections

--- a/man/1/wl3d
+++ b/man/1/wl3d
@@ -138,12 +138,12 @@
 .PD
 .SS Demo lumps
 .I Wl3d
-can playback a single external demo lump before resuming normal operation, when its path is supplied with the
+can playback a single external demo lump before resuming normal operation, when its path is supplied via the
 .B -f
 parameter.
 The
 .B -q
-parameter causes the program to exit after its playback instead.
+parameter causes the program to exit after playback instead.
 The filename's extension, if any, is ignored.
 Regardless, a corresponding game version must be set using the aforementioned command line parameters.
 An incorrect version will cause erroneous playback or a crash.
@@ -238,4 +238,4 @@
 on May 5, 1992.
 .br
 .I Wl3d
-appeared first for 9front (May, 2016), based on the source code release of Wolfenstein 3-D's engine from July 21, 1995.
+first appeared in 9front (May, 2016), based on the source code release of Wolfenstein 3-D's engine from July 21, 1995.
--- a/man/6/wl3d
+++ b/man/6/wl3d
@@ -386,7 +386,7 @@
 Each lump is prefixed by its uncompressed size.
 The first lump,
 .IR pt ,
-contains a the sizes for
+contains the sizes for
 .I np
 pictures, retrieved from
 .IR pic .
@@ -517,6 +517,8 @@
 and a
 .B sdm/sod
 version, but only one is present.
+.B Sdm
+has its own intro screen as well.
 .PP
 The base color palette is stored as any other palette, and is the one used in most circumstances.
 Several other palettes are generated based on it,
--- a/snd.c
+++ b/snd.c
@@ -472,12 +472,10 @@
 		pcme = s->pcm->e;
 		xbi = Nextra;
 		xt = Nextra << Np;
-		if(att){
-			atton = 1;
+		if(atton = att){
 			attx = x;
 			atty = y;
-		}else
-			atton = 0;
+		}
 	}else if(sfxon){
 		if(sfxd != nil && s->pri < sfxd->pri)
 			return;
--- a/wl3d.c
+++ b/wl3d.c
@@ -302,7 +302,5 @@
 		dt = (t0 - t) / Te6;
 		if(dt > 0 && !nosleep)
 			sleep(dt);
-		else
-			t0 = t;
 	}
 }