From a264c3b2b4f246c4f291f64472073e0ff4285e31 Mon Sep 17 00:00:00 2001 From: giersch Date: Thu, 21 Jan 2010 09:28:03 +0000 Subject: [PATCH] Ooops. --- chateaux/chateaux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chateaux/chateaux.cpp b/chateaux/chateaux.cpp index 89de6bd..875fa4b 100644 --- a/chateaux/chateaux.cpp +++ b/chateaux/chateaux.cpp @@ -79,7 +79,7 @@ float wtorX(const DrawingWindow& w, int wx) float wtorY(const DrawingWindow& w, int wy) { - return -(rYMax - rYMin) * wy / (w.height - 1) - rYMax; + return -(rYMax - rYMin) * wy / (w.height - 1) + rYMax; } float hauteurMontagne(float largeur, float hauteur, float x) -- 2.20.1