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

Comparing deliantra/server/common/init.C (file contents):
Revision 1.57 by root, Thu Apr 15 06:05:52 2010 UTC vs.
Revision 1.58 by root, Wed Apr 28 19:49:50 2010 UTC

193//attackmess_t attack_mess[NROFATTACKMESS][MAXATTACKMESS]; 193//attackmess_t attack_mess[NROFATTACKMESS][MAXATTACKMESS];
194 194
195void 195void
196init_attackmess () 196init_attackmess ()
197{ 197{
198 char filename[MAX_BUF]; 198 object_thawer thawer (settings.datadir, "attackmess");
199
200 sprintf (filename, "%s/attackmess", settings.datadir);
201 LOG (llevDebug, "Reading attack messages from %s...\n", filename);
202
203 object_thawer thawer (filename);
204 199
205 if (!thawer) 200 if (!thawer)
206 { 201 {
207 LOG (llevError, "Can't open %s.\n", filename); 202 LOG (llevError, "Can't open %s.\n", thawer.name);
208 return; 203 return;
209 } 204 }
210 205
211 int msgnum = -1; 206 int msgnum = -1;
212 int total = 0; 207 int total = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines