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

Comparing deliantra/server/common/treasure.C (file contents):
Revision 1.96 by root, Sun Nov 29 09:41:28 2009 UTC vs.
Revision 1.97 by root, Sun Nov 29 10:55:18 2009 UTC

1144 1144
1145/* 1145/*
1146 * Allocate and return the pointer to an empty artifactlist structure. 1146 * Allocate and return the pointer to an empty artifactlist structure.
1147 */ 1147 */
1148static artifactlist * 1148static artifactlist *
1149get_empty_artifactlist (void) 1149get_empty_artifactlist ()
1150{ 1150{
1151 return salloc0<artifactlist> (); 1151 return salloc0<artifactlist> ();
1152} 1152}
1153 1153
1154/* 1154/*
1155 * Allocate and return the pointer to an empty artifact structure. 1155 * Allocate and return the pointer to an empty artifact structure.
1156 */ 1156 */
1157static artifact * 1157static artifact *
1158get_empty_artifact (void) 1158get_empty_artifact ()
1159{ 1159{
1160 return salloc0<artifact> (); 1160 return salloc0<artifact> ();
1161} 1161}
1162 1162
1163/* 1163/*
1176 1176
1177/* 1177/*
1178 * Builds up the lists of artifacts from the file in the libdir. 1178 * Builds up the lists of artifacts from the file in the libdir.
1179 */ 1179 */
1180void 1180void
1181init_artifacts (void) 1181init_artifacts ()
1182{ 1182{
1183 static int has_been_inited = 0; 1183 static int has_been_inited = 0;
1184 char filename[MAX_BUF]; 1184 char filename[MAX_BUF];
1185 artifact *art = NULL; 1185 artifact *art = NULL;
1186 artifactlist *al; 1186 artifactlist *al;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines