version 1.41 | | version 1.42 |
---|
| | |
/* | | /* |
* static char *rcsid_weather_c = | | * static char *rcsid_weather_c = |
* "$Id: weather.c,v 1.41 2005/09/04 16:58:13 akirschbaum Exp $"; | | * "$Id: weather.c,v 1.42 2005/10/28 19:08:53 akirschbaum Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
{"shallow_sea", 0, NULL}, | | {"shallow_sea", 0, NULL}, |
{"lava", 0, NULL}, | | {"lava", 0, NULL}, |
{"permanent_lava", 0, NULL}, | | {"permanent_lava", 0, NULL}, |
{NULL, 0} | | {NULL, 0, NULL} |
}; | | }; |
| | |
/* | | /* |
| | |
{"earth", NULL, 1, 0.1, 0.9, 20, 80, -30, 30, 0, 4999, 0}, /* tundra */ | | {"earth", NULL, 1, 0.1, 0.9, 20, 80, -30, 30, 0, 4999, 0}, /* tundra */ |
{"swamp", NULL, 1, 1.0, 9.9, 50, 100, -30, 10, 0, 4000, 0},/* cold marsh */ | | {"swamp", NULL, 1, 1.0, 9.9, 50, 100, -30, 10, 0, 4000, 0},/* cold marsh */ |
{"earth", NULL, 1, 0.0, 99.9, 0, 100, -99, 99, 0, 99999, 0}, /* debug */ | | {"earth", NULL, 1, 0.0, 99.9, 0, 100, -99, 99, 0, 99999, 0}, /* debug */ |
{NULL, NULL, 1, 0.0, 0.0, 0, 0, 0, 0, 0, 0} | | {NULL, NULL, 1, 0.0, 0.0, 0, 0, 0, 0, 0, 0, 0} |
}; | | }; |
| | |
/* This stuff is for creating the images. */ | | /* This stuff is for creating the images. */ |
| | |
int minp; | | int minp; |
| | |
/* skip the outer squares.. it makes handling alot easier */ | | /* skip the outer squares.. it makes handling alot easier */ |
| | dx = 0; |
| | dy = 0; |
for (x=1; x < WEATHERMAPTILESX-1; x++) | | for (x=1; x < WEATHERMAPTILESX-1; x++) |
for (y=1; y < WEATHERMAPTILESY-1; y++) { | | for (y=1; y < WEATHERMAPTILESY-1; y++) { |
minp = PRESSURE_MAX + 1; | | minp = PRESSURE_MAX + 1; |