Visibility BugFix

Login to reply  Page: « < 1 of 1 > »
30 Jan 2010 - 18:532287
Visibility BugFix
Seems the bug where immortals couldn't type 'vis' to become visible was listed as fixed in the changelog for 3.61 but wasn't actually fixed, so here's a fix for it:

function in question is in act.wizard.c
void perform_immort_vis(struct char_data *ch)
{
-  if ((GET_INVIS_LEV(ch) == 0) && (!AFF_FLAGGED(ch, AFF_HIDE) || !AFF_FLAGGED(ch, AFF_INVISIBLE))) {
+  if ((GET_INVIS_LEV(ch) == 0) && (!AFF_FLAGGED(ch, AFF_HIDE) && !AFF_FLAGGED(ch, AFF_INVISIBLE))) {
    send_to_char(ch, "You are already fully visible.\r\n");
    return;
  }

  GET_INVIS_LEV(ch) = 0;
  appear(ch);
  send_to_char(ch, "You are now fully visible.\r\n");
}

EDIT: Fix was committed to the svn, but the bug still exists in 3.61.


__________________

Dedicated DG Forum

Last edited by Fizban (30 Jan 2010 - 19:00)
Login to reply  Page: « < 1 of 1 > »