bridgefall: Fix support loss with EASY_BRIDGES and BRIDGETOWERS on

With EASY_BRIDGES on, bridge spans need to be next to land or a bridge
tower to remain standing.

Land can't go away, but a bridge tower can fall.  Bridge spans next to
it may lose support then.  Bug: they don't fall when they lose support
that way.  Fix that.

Broken in commit 40eb78e, v4.3.12.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2014-01-17 20:50:58 +01:00
parent d80ecb97f5
commit 292bfac797
4 changed files with 6 additions and 6 deletions

View file

@ -66,7 +66,7 @@ bridge_damaged(struct sctstr *sp)
des = sp->sct_type;
if (des == SCT_BSPAN || des == SCT_BTOWER)
knockdown(sp);
if ((des == SCT_BHEAD || des == SCT_BTOWER) && !opt_EASY_BRIDGES)
if ((des == SCT_BHEAD && !opt_EASY_BRIDGES) || des == SCT_BTOWER)
bridgefall(sp);
}