Difference for server/weather.c from version 1.22 to 1.23


version 1.22 version 1.23
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_weather_c =   * static char *rcsid_weather_c =
  *   "$Id: weather.c,v 1.22 2002/12/22 20:43:37 temitchell Exp $";   *   "$Id: weather.c,v 1.23 2003/01/04 00:28:52 mwedel Exp $";
  */   */
 /*  /*
     CrossFire, A Multiplayer game for X-windows      CrossFire, A Multiplayer game for X-windows
Line 2268
 
Line 2268
 int real_world_temperature(int x, int y, mapstruct *m)  int real_world_temperature(int x, int y, mapstruct *m)
 {  {
     int wx, wy, temp, eleva, elevb;      int wx, wy, temp, eleva, elevb;
       object *op;
   
     worldmap_to_weathermap(x, y, &wx, &wy, m->path);      worldmap_to_weathermap(x, y, &wx, &wy, m->path);
     temp = real_temperature(wx, wy);      temp = real_temperature(wx, wy);
Line 2275
 
Line 2276
  eleva = 0;   eleva = 0;
     else      else
  eleva = weathermap[x][y].avgelev;   eleva = weathermap[x][y].avgelev;
     elevb = GET_MAP_OB(m, x, y)->elevation;  
       op= GET_MAP_OB(m, x, y);
       if (!op) return eleva;
   
       elevb = op->elevation;
     if (elevb < 0)      if (elevb < 0)
  elevb = 0;   elevb = 0;
     if (elevb > eleva) {      if (elevb > eleva) {


Legend:
line(s) removed in v.1.22 
line(s) changed
 line(s) added in v.1.23

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:53