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

Comparing deliantra/server/common/image.C (file contents):
Revision 1.8 by root, Thu Dec 14 22:45:40 2006 UTC vs.
Revision 1.10 by pippijn, Sat Jan 6 14:42:28 2007 UTC

1/* 1/*
2 CrossFire, A Multiplayer game for X-windows 2 CrossFire, A Multiplayer game for X-windows
3 3
4 Copyright (C) 2005, 2006, 2007 Marc Lehmann & Crossfire+ Development Team
4 Copyright (C) 2002 Mark Wedel & Crossfire Development Team 5 Copyright (C) 2002 Mark Wedel & Crossfire Development Team
5 Copyright (C) 1992 Frank Tore Johansen 6 Copyright (C) 1992 Frank Tore Johansen
6 7
7 This program is free software; you can redistribute it and/or modify 8 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by 9 it under the terms of the GNU General Public License as published by
152 char buf[MAX_BUF], *cp; 153 char buf[MAX_BUF], *cp;
153 New_Face *on_face = NULL; 154 New_Face *on_face = NULL;
154 FILE *fp; 155 FILE *fp;
155 156
156 sprintf (buf, "%s/faces", settings.datadir); 157 sprintf (buf, "%s/faces", settings.datadir);
157 LOG (llevDebug, "Reading faces from %s...", buf); 158 LOG (llevDebug, "Reading faces from %s...\n", buf);
158 if ((fp = fopen (buf, "r")) == NULL) 159 if ((fp = fopen (buf, "r")) == NULL)
159 { 160 {
160 LOG (llevError, "Cannot open faces file %s: %s\n", buf, strerror (errno)); 161 LOG (llevError, "Cannot open faces file %s: %s\n", buf, strerror (errno));
161 exit (-1); 162 exit (-1);
162 } 163 }
236 int value, nrofbmaps = 0, i; 237 int value, nrofbmaps = 0, i;
237 size_t l; 238 size_t l;
238 239
239 bmaps_checksum = 0; 240 bmaps_checksum = 0;
240 sprintf (buf, "%s/bmaps", settings.datadir); 241 sprintf (buf, "%s/bmaps", settings.datadir);
241 LOG (llevDebug, "Reading bmaps from %s...", buf); 242 LOG (llevDebug, "Reading bmaps from %s...\n", buf);
242 if ((fp = fopen (buf, "r")) == NULL) 243 if ((fp = fopen (buf, "r")) == NULL)
243 { 244 {
244 LOG (llevError, "Cannot open bmaps file %s: %s\n", buf, strerror (errno)); 245 LOG (llevError, "Cannot open bmaps file %s: %s\n", buf, strerror (errno));
245 exit (-1); 246 exit (-1);
246 } 247 }
387 FILE *fp; 388 FILE *fp;
388 int smoothcount = 0; 389 int smoothcount = 0;
389 390
390 bmaps_checksum = 0; 391 bmaps_checksum = 0;
391 sprintf (buf, "%s/smooth", settings.datadir); 392 sprintf (buf, "%s/smooth", settings.datadir);
392 LOG (llevDebug, "Reading smooth from %s...", buf); 393 LOG (llevDebug, "Reading smooth from %s...\n", buf);
393 if ((fp = fopen (buf, "r")) == NULL) 394 if ((fp = fopen (buf, "r")) == NULL)
394 { 395 {
395 LOG (llevError, "Cannot open smooth file %s: %s\n", strerror (errno)); 396 LOG (llevError, "Cannot open smooth file %s: %s\n", strerror (errno));
396 exit (-1); 397 exit (-1);
397 } 398 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines