| version 1.45 | | version 1.46 |
|---|
| | |
| /* | | /* |
| * static char *rcsid_weather_c = | | * static char *rcsid_weather_c = |
| * "$Id: weather.c,v 1.45 2005/11/27 14:19:13 ryo_saeba Exp $"; | | * "$Id: weather.c,v 1.46 2006/06/05 06:28:57 mwedel Exp $"; |
| */ | | */ |
| /* | | /* |
| CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | | |
| | | Copyright (C) 2006 Mark Wedel & Crossfire Development Team |
| Copyright (C) 2002 Tim Rightnour | | Copyright (C) 2002 Tim Rightnour |
| Copyright (C) 2002 Mark Wedel & Crossfire Development Team | | |
| Copyright (C) 1992 Frank Tore Johansen | | Copyright (C) 1992 Frank Tore Johansen |
| | | |
| This program is free software; you can redistribute it and/or modify | | This program is free software; you can redistribute it and/or modify |
| | |
| static void singing_in_the_rain(mapstruct *m, int wx, int wy); | | static void singing_in_the_rain(mapstruct *m, int wx, int wy); |
| static void plant_a_garden(mapstruct *m, int wx, int wy); | | static void plant_a_garden(mapstruct *m, int wx, int wy); |
| static void change_the_world(mapstruct *m, int wx, int wy); | | static void change_the_world(mapstruct *m, int wx, int wy); |
| static void feather_map(mapstruct *m, int wx, int wy); | | |
| static const char *weathermap_to_worldmap_corner(int wx, int wy, int *x, int *y, int dir); | | static const char *weathermap_to_worldmap_corner(int wx, int wy, int *x, int *y, int dir); |
| static int polar_distance(int x, int y, int equator); | | static int polar_distance(int x, int y, int equator); |
| static void update_humid(void); | | static void update_humid(void); |
| | |
| } | | } |
| | | |
| | | |
| | | #if 0 |
| | | /* feather_map is no longer used - should perhaps be removed. |
| | | * MSW 2006-06-02 |
| | | */ |
| | | |
| /* | | /* |
| * Reduce the blockiness of the maps. m is the map we are currently processing. | | * Reduce the blockiness of the maps. m is the map we are currently processing. |
| * wx and wy are | | * wx and wy are |
| | |
| } | | } |
| } | | } |
| } | | } |
| | | #endif |
| | | |
| | | |
| /* provide wx and wy. Will fill in with weathermap coordinates. Requires | | /* provide wx and wy. Will fill in with weathermap coordinates. Requires |
| | |
| spwty = (settings.worldmaptilesy * settings.worldmaptilesizey) / WEATHERMAPTILESY; | | spwty = (settings.worldmaptilesy * settings.worldmaptilesizey) / WEATHERMAPTILESY; |
| | | |
| while (*filename == '/') | | while (*filename == '/') |
| *filename++; | | filename++; |
| | | |
| fx = MAP_WORLDPARTX(m); | | fx = MAP_WORLDPARTX(m); |
| fy = MAP_WORLDPARTY(m); | | fy = MAP_WORLDPARTY(m); |