| version 1.19 | | version 1.20 |
|---|
| | |
| /* | | /* |
| * static char *rcsid_weather_c = | | * static char *rcsid_weather_c = |
| * "$Id: weather.c,v 1.19 2002/12/09 04:55:38 garbled Exp $"; | | * "$Id: weather.c,v 1.20 2002/12/11 19:54:52 garbled Exp $"; |
| */ | | */ |
| /* | | /* |
| CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
| ox = x - 1; | | ox = x - 1; |
| } | | } |
| if (weathermap[x][y].winddir >= 4 && weathermap[x][y].winddir <= 6) { | | if (weathermap[x][y].winddir >= 4 && weathermap[x][y].winddir <= 6) { |
| if (y != WEATHERMAPTILESY) | | if (y < WEATHERMAPTILESY - 1) |
| oy = y + 1; | | oy = y + 1; |
| } | | } |
| if (weathermap[x][y].winddir >= 2 && weathermap[x][y].winddir <= 4) { | | if (weathermap[x][y].winddir >= 2 && weathermap[x][y].winddir <= 4) { |
| if (x != WEATHERMAPTILESX) | | if (x < WEATHERMAPTILESX - 1) |
| ox = x + 1; | | ox = x + 1; |
| } | | } |
| humid = (weathermap[x][y].humid * 2 + | | humid = (weathermap[x][y].humid * 2 + |