From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wi0-f180.google.com ([209.85.212.180]) by ur; Sun Aug 16 16:00:28 EDT 2015 Received: by wibhh20 with SMTP id hh20so64530675wib.0 for <9front@9front.org>; Sun, 16 Aug 2015 13:00:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=PYBWGQkSiMW2BW7z84Fex0DJMFIHuEoa6X3FI3buLsA=; b=ttFTe4HuyMP2VcjZtcEOiRfK8zImsgFIS1ccm2XkyuSukFCeD6UYsudYOS14oM7RSr +JnaNhJbi/ByiViE/6hbt16jEWtJZLN5YQI0YuWAD6p36FOeNp+qDzPGbmY4xsRBdH82 SF0Vl+0J7+BKcORXsIn5w92fzHHT6hZn8+O99cUxM+rJGrU4eopd8slCHnepfVua1ccW jnPaCYtfNtDBNUwIgIdx2t3CKDgHkcW26DP4UMcrIottHyU7iVMxCejomj3zdqUEwDSf zt3OBlWgfA7MUtC4IJKcu554Kdy2yWz/L4ilJ055pN7/ti7cc5w83bOMK4PCDeW2U6S/ Aicg== MIME-Version: 1.0 X-Received: by 10.194.203.138 with SMTP id kq10mr22009313wjc.124.1439755225726; Sun, 16 Aug 2015 13:00:25 -0700 (PDT) Received: by 10.28.229.135 with HTTP; Sun, 16 Aug 2015 13:00:25 -0700 (PDT) Date: Sun, 16 Aug 2015 23:00:25 +0300 Message-ID: List-ID: <9front.9front.org> X-Glyph: ➈ X-Bullshit: shared content-addressed just-in-time-oriented full-stack SVG package browser Subject: games/doom: fix idclev cheat in doom2 and final doom From: qux To: 9front@9front.org Content-Type: text/plain; charset=UTF-8 games/doom: fix idclev cheat in doom2 and final doom a typo in st_stuff.c:ST_Responder prevents idclev (change level) cheat to work in doom2 and final doom (gamemode == commercial): episode is set to 0, when that's invalid, and ST_Responder just returns. to test, while ingame type idclev, followed by: . doom1: episode (1-3 or 1-4) then map number (1-9) . doom2/final doom: map number (1-32) incidentally, if the last digit typed is 1, the player's weapon will switch to the fist, because of a different bug (basically kbdproc registering two events when pressing a key, for 'c' and 'k' case). diff -Naur a/sys/src/games/doom/st_stuff.c b/sys/src/games/doom/st_stuff.c --- a/sys/src/games/doom/st_stuff.c Sun Aug 2 19:57:59 2015 +++ b/sys/src/games/doom/st_stuff.c Sun Aug 16 19:55:47 2015 @@ -680,7 +680,7 @@ if (gamemode == commercial) { - epsd = 0; + epsd = 1; map = (buf[0] - '0')*10 + buf[1] - '0'; } else