Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2002:
[Freeciv-Dev] goto_is_sane() is really insane (PR#2145)
Home

[Freeciv-Dev] goto_is_sane() is really insane (PR#2145)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] goto_is_sane() is really insane (PR#2145)
From: STyx <sylvaintricot@xxxxxxx>
Date: Mon, 7 Oct 2002 13:48:23 -0700 (PDT)

goto_is_sane() is very really  in /freeciv-1.13.0/server/gotohand.c :

in function: goto_is_sane()
1231:
  } else if (is_sailing_unit(punit) &&
             (omni || map_get_known_and_seen(x, y, pplayer)) &&
             map_get_terrain(x, y) != T_OCEAN && !map_get_city(x, y) &&
             !is_terrain_near_tile(x, y, T_OCEAN)) {
    return FALSE;
  }

correction:
  } else if (is_sailing_unit(punit) &&
             (omni || map_get_known_and_seen(x, y, pplayer)) &&
             map_get_terrain(x, y) != T_OCEAN &&
!(map_get_city(x, y) && is_terrain_near_tile(x, y, T_OCEAN)) ) {
    return FALSE;
  }





[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] goto_is_sane() is really insane (PR#2145), STyx <=