[ScryMUD] SVN Commit Info r704 - branches/version-2-1/mud/grrmud/server
scrymud at wanfear.com
scrymud at wanfear.com
Sun Nov 21 13:02:18 PST 2004
Author: eroper
Date: 2004-11-21 13:02:17 -0800 (Sun, 21 Nov 2004)
New Revision: 704
Modified:
branches/version-2-1/mud/grrmud/server/command3.cc
Log:
BUGFIX: web-#38
-[ Bug Content ]--------------------------------------------------------------
If an IMM is wizinvis, "who" will still count that socket as a player. This
kind of defeats the purpose of wizinvis. A simple fix could be that before the
number of active players is displayed, count the number of wizinvis players
and subtract that.
------------------------------------------------------------------------------
This bug has been squashed and confirmed dead.
--Khaav
Modified: branches/version-2-1/mud/grrmud/server/command3.cc
===================================================================
--- branches/version-2-1/mud/grrmud/server/command3.cc 2004-11-20 09:07:18 UTC (rev 703)
+++ branches/version-2-1/mud/grrmud/server/command3.cc 2004-11-21 21:02:17 UTC (rev 704)
@@ -2582,6 +2582,7 @@
Cell<critter*> cll(pc_list);
critter* ptr;
String buf(100);
+ int visible_player_count = 0;
mudlog.log(TRC, "In who..\n");
@@ -2602,6 +2603,9 @@
String rp_str;
String afk_str;
+ //only count visible players
+ ++visible_player_count;
+
int can_detect = FALSE;
if (ptr->isImmort()) {
if (pc.isImmort() && (pc.getImmLevel() >= ptr->getImmLevel())) {
@@ -2656,7 +2660,7 @@
show(buf, pc);
}//while
Sprintf(buf, "\nThere are currently %i people actively playing.\n",
- pc_list.size());
+ visible_player_count);
pc.show(buf);
mudlog.log(TRC, "Done with who.\n");
return 0;
More information about the ScryMUD
mailing list