changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: doom: print correct version number on mismatch (thanks qu7uux)

changeset 4344: 72a84fe2d6b4
parent 4343: 6d999c39a9f0
child 4345: fcc58d5a738e
author: cinap_lenrek@felloff.net
date: Sat, 14 Mar 2015 22:23:39 +0100
files: sys/src/games/doom/g_game.c
description: doom: print correct version number on mismatch (thanks qu7uux)
     1.1--- a/sys/src/games/doom/g_game.c
     1.2+++ b/sys/src/games/doom/g_game.c
     1.3@@ -1565,7 +1565,7 @@ void G_DoPlayDemo (void)
     1.4 	 
     1.5     gameaction = ga_nothing; 
     1.6     demobuffer = demo_p = W_CacheLumpName (defdemoname, PU_STATIC); 
     1.7-    switch (*demo_p++) {
     1.8+    switch (*demo_p) {
     1.9     case VERSION:
    1.10         break;
    1.11     default:
    1.12@@ -1577,7 +1577,7 @@ void G_DoPlayDemo (void)
    1.13         return;
    1.14 */
    1.15     }
    1.16-
    1.17+    demo_p++;
    1.18     skill = *demo_p++; 
    1.19     episode = *demo_p++; 
    1.20     map = *demo_p++;