On Tue, 23 Jul 1996, James Snow wrote:
> Found a minor bug in the stock circle bpl 11 code.
>
> In act.wizard.c....
>
> oldlevel = GET_LEVEL(victim);
> if (newlevel < GET_LEVEL(victim)) {
> do_start(victim);
> GET_LEVEL(victim) = newlevel;
> send_to_char("You are momentarily enveloped by darkness!\r\n"
> "You feel somewhat diminished.\r\n", ch);
>
> should be....
>
> oldlevel = GET_LEVEL(victim);
> if (newlevel < GET_LEVEL(victim)) {
> do_start(victim);
> GET_LEVEL(victim) = newlevel;
> act("You are momentarily enveloped by darkness!\r\n"
> "You feel somewhat diminished.\r\n", FALSE, ch, 0, victim, TO_VICT);
>
>
> It was sending the msg meant for the player/victim to the God.
>
Using act() in that case is a waste . There is no $? variable in the
string. All you really gotta do to fix it, is change ch in the send_to_char
to victim .. Try think about it, before you send something like that to
a heavy (CPU eater) like act() ...
---
Erik Niese-Petersen
Aka Quint The typo God
Realms of Darkness IMP [matrix.xiii.com 6666. Playertesting]
This archive was generated by hypermail 2b30 : 12/07/00 PST