PennMUSH Community

Ticket #7667: roombuilder.patchfile

File roombuilder.patchfile, 1.6 kB (added by Mercutio, 4 months ago)

Patch.

Line 
1 *** /home/Mercutio/pennmush.old/src/create.c    2007-12-28 21:57:17.000000000 -0600
2 --- create.c    2008-07-18 13:58:12.000000000 -0500
3 ***************
4 *** 87,95 ****
5   do_real_open(dbref player, const char *direction, const char *linkto,
6                dbref pseudo)
7   {
8 !   dbref loc =
9 !     (pseudo !=
10 !      NOTHING) ? pseudo : (IsExit(player) ? Source(player) : Location(player));
11     dbref new_exit;
12     if (!command_check_byname(player, "@dig")) {
13       notify(player, "Permission denied.");
14 --- 87,94 ----
15   do_real_open(dbref player, const char *direction, const char *linkto,
16                dbref pseudo)
17   {
18 !   dbref loc = (pseudo != NOTHING) ? pseudo : (IsExit(player) ?
19 !         Source(player) : (IsRoom(player) ? player : Location(player)));
20     dbref new_exit;
21     if (!command_check_byname(player, "@dig")) {
22       notify(player, "Permission denied.");
23 ***************
24 *** 424,433 ****
25    * \param player the enactor.
26    * \param name name of thing to create.
27    * \param cost pennies spent in creation.
28    * \return dbref of new thing, or NOTHING.
29    */
30   dbref
31 ! do_create(dbref player, char *name, int cost)
32   {
33     dbref loc;
34     dbref thing;
35 --- 423,433 ----
36    * \param player the enactor.
37    * \param name name of thing to create.
38    * \param cost pennies spent in creation.
39 +  * \paran newdbref the (unparsed) dbref to give the object, or NULL to use the next free
40    * \return dbref of new thing, or NOTHING.
41    */
42   dbref
43 ! do_create(dbref player, char *name, int cost, char *newdbref)
44   {
45     dbref loc;
46     dbref thing;