From: qux <qu7uux@gmail.com>
To: 9front@9front.org
Subject: games/doom: fix idclev cheat in doom2 and final doom
Date: Sun, 16 Aug 2015 23:00:25 +0300 [thread overview]
Message-ID: <CAAGZaiJ13WPm8g-nw5tafTnXzHQG+ZbVayP6eMBtyYux4AYKYg@mail.gmail.com> (raw)
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
reply other threads:[~2015-08-16 20:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAAGZaiJ13WPm8g-nw5tafTnXzHQG+ZbVayP6eMBtyYux4AYKYg@mail.gmail.com \
--to=qu7uux@gmail.com \
--cc=9front@9front.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).