ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/c_object.C
(Generate patch)

Comparing deliantra/server/server/c_object.C (file contents):
Revision 1.45 by root, Tue Apr 24 16:19:29 2007 UTC vs.
Revision 1.46 by root, Tue Apr 24 16:30:29 2007 UTC

1090 1090
1091/* tmp is the object being described, pl is who is examing it. */ 1091/* tmp is the object being described, pl is who is examing it. */
1092const char * 1092const char *
1093long_desc (object *tmp, object *pl) 1093long_desc (object *tmp, object *pl)
1094{ 1094{
1095 static std::string s = tmp->long_desc (pl); 1095 static std::string s;
1096 return s.c_str (); 1096
1097 return (s = tmp->long_desc (pl)).c_str ();
1097} 1098}
1098 1099
1099std::string 1100std::string
1100object::long_desc (object *who) 1101object::long_desc (object *who)
1101{ 1102{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines