1 | /* |
1 | /* |
2 | * static char *rcsid_anim_c = |
2 | * static char *rcsid_anim_c = |
3 | * "$Id: anim.C,v 1.2 2006/08/29 08:01:35 root Exp $"; |
3 | * "$Id: anim.C,v 1.3 2006/08/30 16:30:36 root Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
66 | animations[0].facings=0; |
66 | animations[0].facings=0; |
67 | |
67 | |
68 | sprintf(buf,"%s/animations", settings.datadir); |
68 | sprintf(buf,"%s/animations", settings.datadir); |
69 | LOG(llevDebug,"Reading animations from %s...", buf); |
69 | LOG(llevDebug,"Reading animations from %s...", buf); |
70 | if ((fp=fopen(buf,"r")) ==NULL) { |
70 | if ((fp=fopen(buf,"r")) ==NULL) { |
71 | LOG(llevError, "Cannot open animations file %s: %s\n", buf, strerror_local(errno)); |
71 | LOG(llevError, "Cannot open animations file %s: %s\n", buf, strerror(errno)); |
72 | exit(-1); |
72 | exit(-1); |
73 | } |
73 | } |
74 | while (fgets(buf, MAX_BUF-1, fp)!=NULL) { |
74 | while (fgets(buf, MAX_BUF-1, fp)!=NULL) { |
75 | if (*buf=='#') continue; |
75 | if (*buf=='#') continue; |
76 | /* Kill the newline */ |
76 | /* Kill the newline */ |