projects
/
empserver
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0faf003
)
Fix strength to ignore land units loaded on land units
author
Markus Armbruster
<armbru@pond.sub.org>
Wed, 13 Jul 2011 18:37:41 +0000
(20:37 +0200)
committer
Markus Armbruster
<armbru@pond.sub.org>
Wed, 13 Jul 2011 18:37:41 +0000
(20:37 +0200)
They can't defend their sector, see get_dlist().
Missed when 4.2.0 made them not defend the sector.
src/lib/commands/stre.c
patch
|
blob
|
history
diff --git
a/src/lib/commands/stre.c
b/src/lib/commands/stre.c
index 12f0a03b48d03074f4601a108a6a30c52abe89c7..55e08636c1a41581a5965b0cc875236dcb426de6 100644
(file)
--- a/
src/lib/commands/stre.c
+++ b/
src/lib/commands/stre.c
@@
-135,7
+135,7
@@
units_in_sector(struct combat *def)
continue;
if (land.lnd_own != def->own)
continue;
- if (land.lnd_ship >= 0)
+ if (land.lnd_ship >= 0
|| land.lnd_land >= 0
)
continue;
d_unit = defense_val(&land);
if (!lnd_could_be_supplied(&land))