Land units no longer hit allied mines
This commit is contained in:
parent
67b9135e96
commit
fe372539b2
1 changed files with 3 additions and 2 deletions
|
@ -623,10 +623,11 @@ lnd_check_mines(struct emp_qelem *land_list)
|
|||
next = qp->q_back;
|
||||
llp = (struct ulist *)qp;
|
||||
getsect(llp->unit.land.lnd_x, llp->unit.land.lnd_y, §);
|
||||
if (sect.sct_oldown == llp->unit.land.lnd_own)
|
||||
continue;
|
||||
if (SCT_LANDMINES(§) == 0)
|
||||
continue;
|
||||
if (relations_with(sect.sct_oldown, llp->unit.land.lnd_own)
|
||||
== ALLIED)
|
||||
continue;
|
||||
if (chance(DMINE_LHITCHANCE(sect.sct_mines) / (1 + 2 * with_eng))) {
|
||||
lnd_hit_mine(&llp->unit.land);
|
||||
sect.sct_mines--;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue