Follow-up Comment #5, bug #15373 (project freeciv):

Another issue found while investigating bug #15422: get_trade_illness() has
the following code:

if (trade_city != NULL
    && trade_city->turn_plague != -1
    && trade_city->turn_plague - < 5) {
    /* ... call in sick ... */

This will always trigger once turn_plague is set for a city, as
trade_city->turn_plague <=, so the result of the subtraction
will be negative. So, once a city has had the plague, it will be infectious
forever, I think.

I assume the intention is that a city remains contagious only for about 5
turns; swapping the condition will give that result.


Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to