[ScryMUD] SVN Commit Info r842 - trunk/mud/grrmud/server

scrymud at wanfear.com scrymud at wanfear.com
Mon Jul 10 14:36:28 PDT 2006


Author: eroper
Date: 2006-07-10 14:36:27 -0700 (Mon, 10 Jul 2006)
New Revision: 842

Modified:
   trunk/mud/grrmud/server/room.cc
Log:
MOBs will no longer trigger their own scripts. This was a problem with
"say" triggers on non priority-0 scripts. I've tested a few in-game mob
scripts, but we need to test a few more before we can be certain that this
doesn't come with unintended consequences.


Modified: trunk/mud/grrmud/server/room.cc
===================================================================
--- trunk/mud/grrmud/server/room.cc	2006-07-10 01:10:16 UTC (rev 841)
+++ trunk/mud/grrmud/server/room.cc	2006-07-10 21:36:27 UTC (rev 842)
@@ -1756,7 +1756,10 @@
          ptr = mob_to_smob(*ptr, getRoomNum());
       }
 
-      ptr->checkForProc(cmd, arg1, actor, targ, *this);
+      // don't want mobs triggering their own scripts.
+      if ( ptr != &actor ) {
+          ptr->checkForProc(cmd, arg1, actor, targ, *this);
+      }
       //   }//if
       //}//if
    }//while




More information about the ScryMUD mailing list