Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid grow_counter capping in UpdateTownGrowRate #6195

Closed
DorpsGek opened this issue Dec 29, 2014 · 1 comment
Closed

Invalid grow_counter capping in UpdateTownGrowRate #6195

DorpsGek opened this issue Dec 29, 2014 · 1 comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

dp opened the ticket and wrote:

this code in UpdateTownGrowRate (town_cmd.c)

t->growth_rate = m / (t->cache.num_houses / 50 + 1);
if (m <= t->grow_counter) {
t->grow_counter = m;
}

t->growth_conter goes from t->growth_rate to 0, it makes no sense comparing it to m, should probably be t->growth_rate there instead.

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/6195
@DorpsGek
Copy link
Member Author

DorpsGek commented Jan 1, 2015

Rubidium closed the ticket.

Reason for closing: Fixed

In r27105


This comment was imported from FlySpray: https://bugs.openttd.org/task/6195

@DorpsGek DorpsGek closed this as completed Jan 1, 2015
@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant