[ScryMUD] SVN Commit Info r686 - trunk/mud/grrmud/server
scrymud at wanfear.com
scrymud at wanfear.com
Thu Jul 22 00:45:07 PDT 2004
Author: eroper
Date: 2004-07-22 00:45:06 -0700 (Thu, 22 Jul 2004)
New Revision: 686
Modified:
trunk/mud/grrmud/server/object.h
trunk/mud/grrmud/server/olc.cc
Log:
Added object::isContainer()
Modified: trunk/mud/grrmud/server/object.h
===================================================================
--- trunk/mud/grrmud/server/object.h 2004-07-21 22:21:01 UTC (rev 685)
+++ trunk/mud/grrmud/server/object.h 2004-07-22 07:45:06 UTC (rev 686)
@@ -285,6 +285,7 @@
int isCanteen() const;
int isTwoHanded() const;
int isBoat() const { return OBJ_FLAGS.get(62); }
+ int isContainer() const { return obj_flags.get(54); }
void setComplete();
void setIncomplete();
Modified: trunk/mud/grrmud/server/olc.cc
===================================================================
--- trunk/mud/grrmud/server/olc.cc 2004-07-21 22:21:01 UTC (rev 685)
+++ trunk/mud/grrmud/server/olc.cc 2004-07-22 07:45:06 UTC (rev 686)
@@ -480,7 +480,7 @@
OLC_OBJ->OBJ_IN_ZONE = ROOM.getZoneNum();
/* check if we should do bag next */
- if (OLC_OBJ->obj_flags.get(54)) {
+ if (OLC_OBJ->isContainer()) {
O_COUNT = 9; //read in a bag
}//if
else {
More information about the ScryMUD
mailing list