NUMMER SCHIFF abgestellt wegen Missbrauchs (Sonnensegel-Verschleierung).

This commit is contained in:
Enno Rehling 2006-08-07 21:46:40 +00:00
parent b89721873c
commit 732dc68e93
2 changed files with 10 additions and 9 deletions

View File

@ -728,12 +728,13 @@ give_cmd(unit * u, order * ord)
if (u->items) {
item **itmp=&u->items;
while (*itmp) {
if ((*itmp)->number > 0
&& (*itmp)->number - get_reservation(u, (*itmp)->type->rtype) > 0) {
n = (*itmp)->number - get_reservation(u, (*itmp)->type->rtype);
if (give_item(n, (*itmp)->type, u, u2, ord)==0) continue;
item * itm = *itmp;
const item_type * itype = itm->type;
if (itm->number > 0 && itm->number - get_reservation(u, itype->rtype) > 0) {
n = itm->number - get_reservation(u, itype->rtype);
if (give_item(n, itype, u, u2, ord)==0) continue;
}
itmp = &(*itmp)->next;
itmp = &itm->next;
}
}
return;

View File

@ -3121,7 +3121,7 @@ renumber(void)
u->no = i;
uhash(u);
break;
#ifdef ALLOW_SHIP_RENUM
case P_SHIP:
if(!u->ship) {
cmistake(u,ord,144,MSG_EVENT);
@ -3149,7 +3149,7 @@ renumber(void)
u->ship->no = i;
shash(u->ship);
break;
#endif
case P_BUILDING:
case P_GEBAEUDE:
if(!u->building) {
@ -3180,7 +3180,7 @@ renumber(void)
break;
default:
cmistake(u,ord,239,MSG_EVENT);
cmistake(u, ord, 239, MSG_EVENT);
}
}
}