forked from github/server
bugfix, aufruf von r_connect mit NODIRECTION ist schlecht
This commit is contained in:
parent
40262c3466
commit
72d506c1cd
|
@ -553,7 +553,7 @@ move_ship(ship * sh, region * from, region * to, region_list * route)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
if (rterrain(sh->region)!=T_OCEAN) {
|
if (rterrain(sh->region)!=T_OCEAN && sh->coast!=NODIRECTION) {
|
||||||
region * rcoast = rconnect(sh->region, sh->coast);
|
region * rcoast = rconnect(sh->region, sh->coast);
|
||||||
if (rterrain(rcoast)!=T_OCEAN) {
|
if (rterrain(rcoast)!=T_OCEAN) {
|
||||||
log_error(("ship %s sailed into a coast with no ocean neighbours.\n",
|
log_error(("ship %s sailed into a coast with no ocean neighbours.\n",
|
||||||
|
|
Loading…
Reference in New Issue