forked from github/server
parent
3685bcabfb
commit
ed75f4d21a
|
@ -34,7 +34,7 @@ function test_sail_into_glacier()
|
|||
u1:add_order("NACH OST")
|
||||
u2.ship = u1.ship
|
||||
process_orders()
|
||||
assert_equal(r, u2.region)
|
||||
assert_equal(r2, u2.region)
|
||||
end
|
||||
|
||||
function test_recruit_in_winter()
|
||||
|
|
|
@ -1429,7 +1429,7 @@ int read_game(gamedata *data)
|
|||
/* Burgen */
|
||||
READ_INT(store, &p);
|
||||
if (p > 0 && !r->land) {
|
||||
log_error("%s, uid=%d has %d %s", regionname(r, NULL), r->uid, p, (p==1) ? "building" : "buildings");
|
||||
log_debug("%s, uid=%d has %d %s", regionname(r, NULL), r->uid, p, (p==1) ? "building" : "buildings");
|
||||
}
|
||||
bp = &r->buildings;
|
||||
|
||||
|
|
15
src/move.c
15
src/move.c
|
@ -677,21 +677,6 @@ int check_ship_allowed(struct ship *sh, const region * r)
|
|||
int c = 0;
|
||||
const building_type *bt_harbour = bt_find("harbour");
|
||||
|
||||
if (sh->region && r_insectstalled(r)) {
|
||||
/* insekten dürfen nicht hier rein. haben wir welche? */
|
||||
unit *u;
|
||||
|
||||
for (u = sh->region->units; u != NULL; u = u->next) {
|
||||
if (u->ship != sh) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (is_freezing(u)) {
|
||||
return SA_NO_INSECT;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (bt_harbour && buildingtype_exists(r, bt_harbour, true)) {
|
||||
unit* harbourmaster = NULL;
|
||||
harbourmaster = owner_buildingtyp(r, bt_harbour);
|
||||
|
|
Loading…
Reference in New Issue