summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2014-03-28 00:12:09 -0400
committerSimon Howard2014-03-28 00:12:09 -0400
commit44efcf1a9088a1a050049fa34779c7279d201676 (patch)
tree850c88d1cec173b1fb3e4215d16a1e2425b12e7e
parent840e87ce39fe2319cbcfc4ff97c2781ce36e5549 (diff)
downloadchocolate-doom-44efcf1a9088a1a050049fa34779c7279d201676.tar.gz
chocolate-doom-44efcf1a9088a1a050049fa34779c7279d201676.tar.bz2
chocolate-doom-44efcf1a9088a1a050049fa34779c7279d201676.zip
video: Fix calculation of -devparm ticker.
The released linuxdoom source had the devparm ticker dots at a spacing of two pixels rather than four pixels (as used in Vanilla Doom). In commit 4a31ec8fcee20e.. I changed this back to four pixel spacing, but forgot to multiply the number of tics to adjust as appropriate. Fix this so that the dots are calculated just like Vanilla Doom is. Thanks to _bruce_ for pointing this out on Doomworld, and to Alexandre-Xavier for questioning my reasoning when I wasn't convinced that the current behavior was wrong. This fixes #360.
-rw-r--r--src/i_video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i_video.c b/src/i_video.c
index a52f1a3b..c129d143 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1104,7 +1104,7 @@ void I_FinishUpdate (void)
lasttic = i;
if (tics > 20) tics = 20;
- for (i=0 ; i<tics*2 ; i+=4)
+ for (i=0 ; i<tics*4 ; i+=4)
I_VideoBuffer[ (SCREENHEIGHT-1)*SCREENWIDTH + i] = 0xff;
for ( ; i<20*4 ; i+=4)
I_VideoBuffer[ (SCREENHEIGHT-1)*SCREENWIDTH + i] = 0x0;