forked from github/server
Piraterie repariert
Die Piraten sind oftmals einfach in ein falsches (leeres) Ozeanfeld gesegelt, wenn es irgendwo ein Opfer gab.
This commit is contained in:
parent
46ab9e7bb6
commit
7ac56b3fbf
|
@ -2314,7 +2314,7 @@ static void piracy_cmd(unit * u, struct order *ord)
|
||||||
if (saff != 0) {
|
if (saff != 0) {
|
||||||
saff = rng_int() % saff;
|
saff = rng_int() % saff;
|
||||||
for (dir = 0; dir != MAXDIRECTIONS; ++dir) {
|
for (dir = 0; dir != MAXDIRECTIONS; ++dir) {
|
||||||
if (saff != aff[dir].value)
|
if (saff < aff[dir].value)
|
||||||
break;
|
break;
|
||||||
saff -= aff[dir].value;
|
saff -= aff[dir].value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue