… | |
… | |
193 | //attackmess_t attack_mess[NROFATTACKMESS][MAXATTACKMESS]; |
193 | //attackmess_t attack_mess[NROFATTACKMESS][MAXATTACKMESS]; |
194 | |
194 | |
195 | void |
195 | void |
196 | init_attackmess () |
196 | init_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; |