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

scrymud at wanfear.com scrymud at wanfear.com
Sat Dec 18 21:24:33 PST 2004


Author: eroper
Date: 2004-12-18 21:24:32 -0800 (Sat, 18 Dec 2004)
New Revision: 782

Modified:
   trunk/mud/grrmud/server/script.cc
Log:
Merged -r745:766 from version-2-1 branch.
This reversed the previous script-prompt fix Loki committed and fixed the
prompt in exact_... etc.


Modified: trunk/mud/grrmud/server/script.cc
===================================================================
--- trunk/mud/grrmud/server/script.cc	2004-12-19 05:12:35 UTC (rev 781)
+++ trunk/mud/grrmud/server/script.cc	2004-12-19 05:24:32 UTC (rev 782)
@@ -194,12 +194,18 @@
    dice_cnt = bound(0, 20, dice_cnt);
    dice_sides = bound(0, 100, dice_sides);
 
-   pc.emote(msg);
+   if (pc.pc) {
+      pc.setDoPrompt(TRUE);
+   }
 
+   if (msg.Strlen() > 0) {
+      pc.emote(msg);
+   }
+
    exact_raw_damage(d(dice_cnt, dice_sides), NORMAL, pc);
 
    if (pc.HP < 0) { //was a fatality
-      agg_kills_vict(&pc, pc);
+      agg_kills_vict(NULL, pc);
    }
 
    return 0;
@@ -1169,7 +1175,6 @@
 
 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;
@@ -1216,11 +1221,7 @@
    }//if
 
    targ = cmd.getCommand(); //reuse targ, it should contain the command now.
-   result = script_actor->processInput(targ, FALSE, TRUE, &owner, NULL);
-   if (script_actor->pc && script_actor != &owner) {
-      script_actor->setDoPrompt(TRUE);
-   }
-   return result;
+   return script_actor->processInput(targ, FALSE, TRUE, &owner, NULL);
 }//parseScriptCommand
 
 




More information about the ScryMUD mailing list