This reverts commit
c3a839934f159b72b510cecb45c8c396efb38119.
The commit message's claim that the code never actually retreats
ghosts is wrong: boar() does.
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
Conflicts:
src/lib/subs/retreat.c
struct nstr_item ni;
struct shpstr ship;
- if (CANT_HAPPEN(!sp->shp_own))
- return;
if (sp->shp_own == player->cnum || !sp->shp_rpath[0])
return;
struct nstr_item ni;
struct lndstr land;
- if (CANT_HAPPEN(!lp->lnd_own))
- return;
if (lp->lnd_own == player->cnum || !lp->lnd_rpath[0])
return;
board 132 5
50
| BUG: group does not retreat
-| BUG: oopses!
__cmd added 1 4 0
||| Land units
| BUG: condition b triggers only on hit
Connect from 127.0.0.1
tester@127.0.0.1 using country #1
tester@127.0.0.1 logged in as country #1
-Oops: !sp->shp_own in ../src/lib/subs/retreat.c:79
-Crash dump complete
tester@127.0.0.1 logged out, country #1
Connect from 127.0.0.1
tester@127.0.0.1 using country #0