Skip to content

Commit

Permalink
fuzzball-muck#734 Fix for findnext bug introduced by me.
Browse files Browse the repository at this point in the history
  • Loading branch information
tanabi committed Nov 2, 2024
1 parent b0ca45a commit 4d99fdb
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/help.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MUCK Reference Manual for Muck2.2fb7.10
MUCK Reference Manual for Muck2.2fb7.21
by Revar Desmera <[email protected]>

You may get a listing of topics that you can get help on, either sorted
Expand Down
7 changes: 5 additions & 2 deletions docs/man.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MUF Reference Manual for Muck2.2fb7.10
MUF Reference Manual for Muck2.2fb7.21
by Revar Desmera <[email protected]>

You may get a listing of topics that you can get help on, either sorted
Expand Down Expand Up @@ -5015,7 +5015,10 @@ NEWROOM
NEWROOM (d s -- d)

Takes the dbref of the parent and the name of the room. It returns the
dbref of the created room. Owner is the person running the program.
dbref of the created room. Owner is the person running the program. If d is
#-1, then it becomes the first ABODE room down the environment tree from
the current room, or the default room parent.

Can only create one object per program run, if under Mucker Level 3.
~
~
Expand Down
2 changes: 1 addition & 1 deletion docs/mpihelp.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MPI Reference Manual for Muck2.2fb7.10
MPI Reference Manual for Muck2.2fb7.21
by Revar Desmera <[email protected]>

You may get a listing of topics that you can get help on, either sorted
Expand Down
5 changes: 4 additions & 1 deletion docs/mufman.html
Original file line number Diff line number Diff line change
Expand Up @@ -7950,7 +7950,10 @@ <h3 id="newroom">NEWROOM (d s -- d)
<br>
</h3>
Takes the dbref of the parent and the name of the room. It returns the
dbref of the created room. Owner is the person running the program.
dbref of the created room. Owner is the person running the program. If d is
#-1, then it becomes the first ABODE room down the environment tree from
the current room, or the default room parent.

Can only create one object per program run, if under Mucker Level 3.
<!-- HTML_TOPICEND -->

Expand Down
4 changes: 2 additions & 2 deletions src/p_db.c
Original file line number Diff line number Diff line change
Expand Up @@ -2525,8 +2525,8 @@ prim_findnext(PRIM_PROTOTYPE)
abort_interp("Expected string argument. (3)");
}

if (!valid_player(oper2)) {
abort_interp("Expected player argument. (2)");
if (oper2->data.objref != NOTHING && !valid_player(oper2)) {
abort_interp("Expected player argument or #-1. (2)");
}

if (!valid_object(oper1) && oper1->data.objref != NOTHING) {
Expand Down

0 comments on commit 4d99fdb

Please sign in to comment.