From: giersch Date: Tue, 27 Nov 2007 17:51:00 +0000 (+0000) Subject: . X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/graphlib.git/commitdiff_plain/d7fc067e68f6bc15188d948f030453e3f87ed926 . --- diff --git a/chateaux/chateaux.cpp b/chateaux/chateaux.cpp index 9238389..edeb64c 100644 --- a/chateaux/chateaux.cpp +++ b/chateaux/chateaux.cpp @@ -22,6 +22,8 @@ const float hauteurMax = 130; const float largeurMin = 40; const float largeurMax = 150; +const float ventMax = 30; + const float largeurChateau = 8.5; const float hauteurChateau = 7; @@ -202,7 +204,7 @@ void initialise(DrawingWindow& w) { largeurMont = frand(largeurMin, largeurMax); hauteurMont = frand(hauteurMin, hauteurMax); - wnd = frand(-30, 30); + wnd = frand(-ventMax, ventMax); w.setBgColor("skyblue"); w.clearGraph(); dessineTerrain(w, largeurMont, hauteurMont);