smal fixes for Linux

This commit is contained in:
CTD 2014-11-11 10:53:29 +01:00
parent 9d3b2f3da9
commit f3cce58be5
1 changed files with 2 additions and 2 deletions

View File

@ -913,7 +913,7 @@ static unit *bewegung_blockiert_von(unit * reisender, region * r)
int sk = eff_skill(u, SK_PERCEPTION, r); int sk = eff_skill(u, SK_PERCEPTION, r);
if (invisible(reisender, u) >= reisender->number) if (invisible(reisender, u) >= reisender->number)
continue; continue;
if (!u_race(u)->flags & RCF_FLY && u_race(reisender)->flags & RCF_FLY) if (!(u_race(u)->flags & RCF_FLY) && u_race(reisender)->flags & RCF_FLY)
continue; continue;
if ((u->faction == reisender->faction) || (ucontact(u, reisender)) || (alliedunit(u, reisender->faction, HELP_GUARD))) if ((u->faction == reisender->faction) || (ucontact(u, reisender)) || (alliedunit(u, reisender->faction, HELP_GUARD)))
guard_count = guard_count - u->number; guard_count = guard_count - u->number;
@ -964,7 +964,7 @@ static bool is_guardian_u(const unit * guard, unit * u, unsigned int mask)
return false; return false;
if (!cansee(guard->faction, u->region, u, 0)) if (!cansee(guard->faction, u->region, u, 0))
return false; return false;
if (!u_race(guard)->flags & RCF_FLY && u_race(u)->flags & RCF_FLY) if (!(u_race(guard)->flags & RCF_FLY) && u_race(u)->flags & RCF_FLY)
return false; return false;
return true; return true;