<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39833 >
This transaction appears to have no content
This patch implements the suggestion, by only testing if surplus is less than minimal surplus if minimal surplus is greater than -20. This is, literally, a 1-line change. However, all the UIs would still show -20 in the CM editing screen.
Index: common/aicore/cm.c =================================================================== --- common/aicore/cm.c (revision 13913) +++ common/aicore/cm.c (working copy) @@ -542,7 +542,7 @@ output_type_iterate(stat) { fitness.weighted += surplus[stat] * parameter->factor[stat]; - if (surplus[stat] < parameter->minimal_surplus[stat]) { + if (parameter->minimal_surplus[stat] > -20 && surplus[stat] < parameter->minimal_surplus[stat]) { fitness.sufficient = FALSE; } } output_type_iterate_end;
signature.asc
Description: PGP signature
_______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev