ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/random_maps/exit.c
(Generate patch)

Comparing deliantra/server/random_maps/exit.c (file contents):
Revision 1.1.1.1 by root, Fri Feb 3 07:14:21 2006 UTC vs.
Revision 1.1.1.2 by elmex, Wed Mar 15 14:05:33 2006 UTC

1/* 1/*
2 * static char *rcsid_exit_c = 2 * static char *rcsid_exit_c =
3 * "$Id: exit.c,v 1.1.1.1 2006/02/03 07:14:21 root Exp $"; 3 * "$Id: exit.c,v 1.1.1.2 2006/03/15 14:05:33 elmex 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
287 /* Remove exit back to previous random map. There should only be one 287 /* Remove exit back to previous random map. There should only be one
288 * which is why we break out. To try to process more than one 288 * which is why we break out. To try to process more than one
289 * would require keeping a 'next' pointer, ad free_object kills tmp, which 289 * would require keeping a 'next' pointer, ad free_object kills tmp, which
290 * breaks the for loop. 290 * breaks the for loop.
291 */ 291 */
292 if (tmp->type == EXIT && !strncmp(EXIT_PATH(tmp),"/random/", 8)) { 292 if (tmp->type == EXIT && EXIT_PATH(tmp) && !strncmp(EXIT_PATH(tmp),"/random/", 8)) {
293 remove_ob(tmp); 293 remove_ob(tmp);
294 free_object(tmp); 294 free_object(tmp);
295 break; 295 break;
296 } 296 }
297 297

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines