From d7fc067e68f6bc15188d948f030453e3f87ed926 Mon Sep 17 00:00:00 2001 From: giersch Date: Tue, 27 Nov 2007 17:51:00 +0000 Subject: [PATCH] . --- chateaux/chateaux.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.20.1