Fix GitLab issue #13 - The "eat" command exhibits strange behavior

The problem wasn't actually with "eat" but with "grate".  Processing
of any two-word command with an object of "grate", when given at certain
locations including the start, inappropriately jumped directly
to the movement code (ignoring the verb).

There was a similar bug in the ancestral 2.5, though it manifested slightly
differently.
This commit is contained in:
Eric S. Raymond 2017-06-21 16:54:10 -04:00
parent 6dbe6f081c
commit fd6da15373
3 changed files with 6 additions and 10 deletions

View file

@ -33,7 +33,7 @@ You're in front of building.
> eat grate
You're in front of building.
Don't be ridiculous!
> in
@ -109,9 +109,7 @@ You're in front of building.
I don't know where the cave is, but hereabouts no stream can run on
the surface for long. I would try the stream.
You are standing at the end of a road before a small brick building.
Around you is a forest. A small stream flows out of the building and
down a gully.
You're in front of building.
> enter stream
@ -133,7 +131,9 @@ Carry what?
I am unsure how you are facing. Use compass points or nearby objects.
You're in front of building.
You are standing at the end of a road before a small brick building.
Around you is a forest. A small stream flows out of the building and
down a gully.
> eat