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.4 by root, Mon Sep 4 11:07:59 2006 UTC vs.
Revision 1.5 by root, Fri Sep 8 16:51:42 2006 UTC

1/* 1/*
2 * static char *rcsid_image_c = 2 * static char *rcsid_image_c =
3 * "$Id: image.C,v 1.4 2006/09/04 11:07:59 root Exp $"; 3 * "$Id: image.C,v 1.5 2006/09/08 16:51:42 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
328 */ 328 */
329int FindFace (const char *name, int error) { 329int FindFace (const char *name, int error) {
330 struct bmappair *bp, tmp; 330 struct bmappair *bp, tmp;
331 char *p; 331 char *p;
332 332
333 if (!name)
334 return error;
335
333 if ((p = strchr (name, '\n'))) 336 if ((p = strchr (name, '\n')))
334 *p = '\0'; 337 *p = '\0';
335 338
336 tmp.name = (char *)name; 339 tmp.name = (char *)name;
337 bp = (struct bmappair *)bsearch 340 bp = (struct bmappair *)bsearch

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines