version 1.20 | | version 1.21 |
---|
| | |
/* | | /* |
* static char *rcsid_weather_c = | | * static char *rcsid_weather_c = |
* "$Id: weather.c,v 1.20 2002/12/11 19:54:52 garbled Exp $"; | | * "$Id: weather.c,v 1.21 2002/12/21 08:02:35 mwedel Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
if (!strcmp(oldsnow->arch->name, at->name)) | | if (!strcmp(oldsnow->arch->name, at->name)) |
at = NULL; | | at = NULL; |
else { | | else { |
remove_ob(oldsnow); | | |
free_object(oldsnow); | | |
tmp=GET_MAP_OB(m, x, y); | | tmp=GET_MAP_OB(m, x, y); |
| | remove_ob(oldsnow); |
/* clean up the trees we put over the snow */ | | /* clean up the trees we put over the snow */ |
found = 0; | | found = 0; |
doublestack2 = NULL; | | doublestack2 = NULL; |
| | |
break; | | break; |
} | | } |
} | | } |
| | free_object(oldsnow); |
if (tmp != NULL && doublestack2 != NULL) | | if (tmp != NULL && doublestack2 != NULL) |
if (strcmp(tmp->arch->name, doublestack2) == 0) { | | if (strcmp(tmp->arch->name, doublestack2) == 0) { |
remove_ob(tmp); | | remove_ob(tmp); |