[ScryMUD] SVN Commit Info r720 - branches/version-2-1/mud/grrmud/server

scrymud at wanfear.com scrymud at wanfear.com
Sat Nov 27 23:22:12 PST 2004


Author: justin
Date: 2004-11-27 23:22:11 -0800 (Sat, 27 Nov 2004)
New Revision: 720

Modified:
   branches/version-2-1/mud/grrmud/server/script.cc
Log:
Whenever a PC acts in a MobScript they will be given a fresh prompt.



Modified: branches/version-2-1/mud/grrmud/server/script.cc
===================================================================
--- branches/version-2-1/mud/grrmud/server/script.cc	2004-11-28 06:38:56 UTC (rev 719)
+++ branches/version-2-1/mud/grrmud/server/script.cc	2004-11-28 07:22:11 UTC (rev 720)
@@ -1169,6 +1169,7 @@
 
 int MobScript::_cnt = 0;
 int MobScript::parseScriptCommand(ScriptCmd& cmd, critter& owner, int& obj_was_deleted) {
+   int result;
    // Look at first command and see if it has non-standard actors.
    obj_was_deleted = FALSE;
    critter* script_actor = NULL;
@@ -1215,7 +1216,11 @@
    }//if
 
    targ = cmd.getCommand(); //reuse targ, it should contain the command now.
-   return script_actor->processInput(targ, FALSE, TRUE, &owner, NULL);
+   result = script_actor->processInput(targ, FALSE, TRUE, &owner, NULL);
+   if (script_actor->pc && script_actor != &owner) {
+      script_actor->setDoPrompt(TRUE);
+   }
+   return result;
 }//parseScriptCommand
 
 




More information about the ScryMUD mailing list