Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...

Bug #763881

Pollution is placed 1% more than pollution value of city

Added by Akechi . about 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Server
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Pollution is placed 1% more than pollution value of city.

From http://freeciv.wikia.com/wiki/Forum:Some_tiny_issues (10):

server\cityturn.c
check_pollution
if (pcity->pollution != 0 && fc_rand(100) <= pcity->pollution) {

city_pollution.patch (665 Bytes) city_pollution.patch Anonymous, 2018-07-31 01:29 AM
city_pollution-s25.patch (669 Bytes) city_pollution-s25.patch Anonymous, 2018-07-31 01:32 AM

Related issues

Blocks Freeciv - Task #656706: Handle http://freeciv.wikia.com/wiki/Forum:Some_tiny_issuesNew

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

History

#1 Updated by Jacob Nevins about 3 years ago

  • Blocks Task #656706: Handle http://freeciv.wikia.com/wiki/Forum:Some_tiny_issues added

#2 Updated by Anonymous almost 3 years ago

Patches attached.
I removed also check for pcity->pollution != 0, but maybe it could stay to some give few cpu cycles , bc compiler doesnt need to check second statement after seeing first fails ( I'm not sure how expensive operation is rand())

#3 Updated by Anonymous almost 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF