version 1.60 | | version 1.61 |
---|
| | |
/* | | /* |
* static char *rcsid_map_c = | | * static char *rcsid_map_c = |
* "$Id: map.c,v 1.60 2004/02/11 08:09:22 mwedel Exp $"; | | * "$Id: map.c,v 1.61 2004/02/16 05:10:41 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
orig_map->tile_map[tile_num] = ready_map_name(orig_map->tile_path[tile_num], 0); | | orig_map->tile_map[tile_num] = ready_map_name(orig_map->tile_path[tile_num], 0); |
| | |
/* need to do a strcmp here as the orig_map->path is not a shared string */ | | /* need to do a strcmp here as the orig_map->path is not a shared string */ |
if (!strcmp(orig_map->tile_map[tile_num]->tile_path[dest_tile], orig_map->path)) | | if (orig_map->tile_map[tile_num]->tile_path[dest_tile] && |
| | !strcmp(orig_map->tile_map[tile_num]->tile_path[dest_tile], orig_map->path)) |
orig_map->tile_map[tile_num]->tile_map[dest_tile] = orig_map; | | orig_map->tile_map[tile_num]->tile_map[dest_tile] = orig_map; |
| | |
return orig_map->tile_map[tile_num]; | | return orig_map->tile_map[tile_num]; |