- Rassentarnung wird nur noch vererbt, wenn die erschaffene Einheit sich

auch Rassentarnen kann.
This commit is contained in:
Christian Schlittchen 2002-05-11 18:22:22 +00:00
parent a26a079f10
commit 28fff31428
2 changed files with 2 additions and 2 deletions

View File

@ -195,7 +195,7 @@ setstealth(unit * u, strlist * S)
if (u->race->flags & RCF_SHAPESHIFT) {
if (playerrace(trace)) {
u->irace = trace;
if (u->race->flags & RCF_SHAPESHIFTANY && get_racename(u->attribs))
if ((u->race->flags & RCF_SHAPESHIFTANY) && get_racename(u->attribs))
set_racename(&u->attribs, NULL);
}
}

View File

@ -1701,7 +1701,7 @@ create_unit(region * r, faction * f, int number, const struct race *urace, int i
/* Daemonentarnung */
set_racename(&u->attribs, get_racename(creator->attribs));
if (fval(creator->race, RCF_SHAPESHIFT)) {
if (fval(u->race, RCF_SHAPESHIFT) && fval(creator->race, RCF_SHAPESHIFT)) {
u->irace = creator->irace;
}