(PR#12299) Bug in greed()
"Mateusz Stefek" <mstefek-IjDXvh/[email protected]> Sat, 19 Feb 2005 03:08:39 -0800
| Newsgroups | gmane.games.freeciv.ai |
|---|---|
| Message-ID | <[email protected]> |
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12299 > OOps. This is my fault. -- mateusz
greed.diff
(text/plain, 428 B)
--- freeciv/ai/advdiplomacy.c 2005-02-12 10:52:16.000000000 +0100
+++ changed/ai/advdiplomacy.c 2005-02-19 12:05:12.000000000 +0100
@@ -106,7 +106,7 @@
} else {
/* Don't change the operation order here.
* We do not want integer overflows */
- return ((missing_love * MAX_AI_LOVE) / 1000) *
+ return -((missing_love * MAX_AI_LOVE) / 1000) *
((missing_love * MAX_AI_LOVE) / 1000) /
50;
}