Kleiner Fix bei den Regionen

Es gibt Zeiten da sollte man einfach nicht Programmieren.
So ist es richtig.
This commit is contained in:
CTD 2014-08-14 23:53:32 +02:00
parent 7dd86959a9
commit ee20269243
1 changed files with 11 additions and 11 deletions

View File

@ -891,17 +891,17 @@ static unit *bewegung_blockiert_von(unit * reisender, region * r)
} }
if (guard) { if (guard) {
prob += base_prob; /* 30% base chance */ prob += base_prob; /* 30% base chance */
prob = +guard_count*guard_number_prob; prob += guard_count*guard_number_prob;
if (r->terrain = newterrain(T_GLACIER)) if (r->terrain == newterrain(T_GLACIER))
prob = +region_type_prob*2; prob += region_type_prob * 2;
if (r->terrain = newterrain(T_SWAMP)) if (r->terrain == newterrain(T_SWAMP))
prob = +region_type_prob*2; prob += region_type_prob * 2;
if (r->terrain = newterrain(T_MOUNTAIN)) if (r->terrain == newterrain(T_MOUNTAIN))
prob = +region_type_prob; prob += region_type_prob;
if (r->terrain = newterrain(T_VOLCANO)) if (r->terrain == newterrain(T_VOLCANO))
prob = +region_type_prob; prob += region_type_prob;
if (r->terrain = newterrain(T_VOLCANO_SMOKING)) if (r->terrain == newterrain(T_VOLCANO_SMOKING))
prob = +region_type_prob; prob += region_type_prob;
if (prob > 0 && chance(prob)) { if (prob > 0 && chance(prob)) {
return guard; return guard;