Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
zilf
zilf
Commits
6853ae849818
Commit
63d900da
authored
Aug 10, 2020
by
Jesse McGrew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZILF-209
: Fix AGAIN after KLUDGEBIT actions.
parent
216ad2cec5ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
zillib/tests/test-findbits.zil
zillib/tests/test-findbits.zil
+12
-0
zillib/verbs.zil
zillib/verbs.zil
+2
-2
No files found.
zillib/tests/test-findbits.zil
View file @
6853ae84
...
...
@@ -46,4 +46,16 @@
<COMMAND [WAKE]>
<EXPECT "Whom do you want to wake?|">>
<TEST-CASE ("AGAIN after KLUDGEBIT action (PRSO)")
<COMMAND [TAKE INVENTORY]>
<EXPECT "You are empty-handed.|">
<COMMAND [AGAIN]>
<EXPECT "You are empty-handed.|">>
<TEST-CASE ("AGAIN after KLUDGEBIT action (PRSI)")
<COMMAND [WAKE ME UP]>
<EXPECT "If only this were a dream.|">
<COMMAND [AGAIN]>
<EXPECT "If only this were a dream.|">>
<TEST-GO ,STARTROOM>
zillib/verbs.zil
View file @
6853ae84
...
...
@@ -1253,12 +1253,12 @@ Returns:
<RESTORE-PARSER-RESULT ,AGAIN-STORAGE>
<PROG ()
;"if PRSO and/or PRSI are set, make sure the object(s) still pass the checks"
<COND (<AND
,PRSO
<COND (<AND
<N==? ,PRSO <> ,ROOMS>
<NOT ,PRSO-DIR>
<NOT <AND <STILL-VISIBLE-CHECK ,P-PRSOS>
<HAVE-TAKE-CHECK-TBL ,P-PRSOS <GETB ,P-SYNTAX ,SYN-OPTS1>>>>>
<RETURN>)
(<AND
,PRSI
(<AND
<N==? ,PRSI <> ,ROOMS>
<NOT <AND <STILL-VISIBLE-CHECK ,P-PRSIS>
<HAVE-TAKE-CHECK-TBL ,P-PRSIS <GETB ,P-SYNTAX ,SYN-OPTS2>>>>>
<RETURN>)>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment