prevent prospecting-exploit
This commit is contained in:
Enno Rehling 2010-11-02 22:23:04 -07:00
parent 0472c35647
commit 33100abebb
1 changed files with 3 additions and 9 deletions

View File

@ -1752,15 +1752,9 @@ split_allocations(region * r)
fset(r, RF_SELECT); fset(r, RF_SELECT);
} }
if (al->want==INT_MAX) al->want = al->get; if (al->want==INT_MAX) al->want = al->get;
if (fval(al, AFL_LOWSKILL)) {
ADDMSG(&al->unit->faction->msgs,
msg_message("produce_lowskill", "unit region resource",
al->unit, al->unit->region, rtype));
} else {
ADDMSG(&al->unit->faction->msgs, msg_message("produce", ADDMSG(&al->unit->faction->msgs, msg_message("produce",
"unit region amount wanted resource", "unit region amount wanted resource",
al->unit, al->unit->region, al->get, al->want, rtype)); al->unit, al->unit->region, al->get, al->want, rtype));
}
*p_al=al->next; *p_al=al->next;
free_allocation(al); free_allocation(al);
} }