[gbrainy] Fixes Debian #609284
- From: Jordi Mas <jmas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gbrainy] Fixes Debian #609284
- Date: Sat, 22 Jan 2011 13:07:44 +0000 (UTC)
commit ed383851c7d83f2d3c7952a399e615aa1d3c74b1
Author: Kees Cook <kees debian org>
Date: Fri Jan 21 18:56:36 2011 +0100
Fixes Debian #609284
data/games.xml | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/data/games.xml b/data/games.xml
index 8e8bd26..7353801 100644
--- a/data/games.xml
+++ b/data/games.xml
@@ -346,9 +346,9 @@
<variables>
int right_pos = 2;
int left_pos = 4;
- int weight = 2 + random.Next (8) * 2;
- int left_weight = left_pos * weight;
- int right_weight = left_pos * weight / right_pos;
+ int left_weight = 2 + random.Next (8) * 2;
+ int force = left_pos * left_weight;
+ int right_weight = force / right_pos;
</variables>
<string text = "?" x = "0.66" y = "0.4" centered = "yes" size = "large"/>
<string text = "[left_weight]" x = "0.18" y = "0.4" centered = "yes" size = "large"/>
@@ -359,9 +359,9 @@
<variables>
int right_pos = 1;
int left_pos = 4;
- int weight = 2 + random.Next (8) * 2;
- int left_weight = left_pos * weight;
- int right_weight = weight;
+ int left_weight = 2 + random.Next (8) * 2;
+ int force = left_pos * left_weight;
+ int right_weight = force / right_pos;
</variables>
<string text = "?" x = "0.58" y = "0.4" centered = "yes" size = "large"/>
<string text = "[left_weight]" x = "0.18" y = "0.4" centered = "yes" size = "large"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]