[ScryMUD] SVN Commit Info r693 - trunk/mud/grrmud/server
scrymud at wanfear.com
scrymud at wanfear.com
Fri Jul 23 03:41:20 PDT 2004
Author: eroper
Date: 2004-07-23 03:41:20 -0700 (Fri, 23 Jul 2004)
New Revision: 693
Modified:
trunk/mud/grrmud/server/command2.cc
Log:
Resolved the following:
Idea: [98] [open] Fri Jun 18 22:46:29 1999 By Shamu Room: 615
would be nice to be able to tell if a door is closed or not, ie in the in-room
directions listing say "N S E(closed) W" or something
Modified: trunk/mud/grrmud/server/command2.cc
===================================================================
--- trunk/mud/grrmud/server/command2.cc 2004-07-23 10:22:45 UTC (rev 692)
+++ trunk/mud/grrmud/server/command2.cc 2004-07-23 10:41:20 UTC (rev 693)
@@ -435,11 +435,19 @@
dr_ptr->isSecretWhenOpen())) {
dest = abs(dr_ptr->destination);
if (pc.isImmort()) { //if immortal, show extra info
- Sprintf(buf, "%s[%i] ", abbrev_dir_of_door(*dr_ptr),
+ Sprintf(buf, "%s[%i]", abbrev_dir_of_door(*dr_ptr),
dest);
+ if ( dr_ptr->isClosed() ) {
+ buf.Append("(closed)");
+ }
+ buf.Append(" ");
}//if
else {
- Sprintf(buf, "%s ", abbrev_dir_of_door(*dr_ptr));
+ Sprintf(buf, "%s", abbrev_dir_of_door(*dr_ptr));
+ if ( dr_ptr->isClosed() ) {
+ buf.Append("(closed)");
+ }
+ buf.Append(" ");
}//else
reg_disp.Append(buf);
More information about the ScryMUD
mailing list