Nummer Schiff ist fuer neue Schiffe wieder erlaubt.
This commit is contained in:
Enno Rehling 2006-10-07 21:29:29 +00:00
parent d02be7811a
commit 7e4db04e1b
1 changed files with 8 additions and 5 deletions

View File

@ -2931,12 +2931,16 @@ renumber_cmd(unit * u, order * ord)
u->no = i;
uhash(u);
break;
#ifdef ALLOW_SHIP_RENUM
case P_SHIP:
if (!u->ship) {
cmistake(u, ord, 144, MSG_EVENT);
break;
}
if (u->ship->coast != NODIRECTION) {
cmistake(u, ord, 116, MSG_EVENT);
break;
}
if (!fval(u, UFL_OWNER)) {
cmistake(u, ord, 146, MSG_EVENT);
break;
@ -2959,7 +2963,6 @@ renumber_cmd(unit * u, order * ord)
u->ship->no = i;
shash(u->ship);
break;
#endif
case P_BUILDING:
case P_GEBAEUDE:
if (!u->building) {