From: giersch Date: Wed, 21 Nov 2007 12:11:41 +0000 (+0000) Subject: . X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/graphlib.git/commitdiff_plain/6c431528845262d8a479e5dcaf9517b97cc4d7fc . --- diff --git a/chateaux/chateaux.cpp b/chateaux/chateaux.cpp index b6c26e2..de2f469 100644 --- a/chateaux/chateaux.cpp +++ b/chateaux/chateaux.cpp @@ -292,12 +292,12 @@ int jeu1(DrawingWindow& w) alpha = deg2rad(alpha); float x0; if (joueur == 1) { - x0 = positionChateau1 + 8; + x0 = positionChateau1 + 0.8 * largeurChateau; } else { - x0 = positionChateau2 - 8; + x0 = positionChateau2 - 0.8 * largeurChateau; alpha = PI - alpha; } - float y0 = 8; + float y0 = hauteurChateau + 1; perdant = tir(w, x0, y0, v0, alpha, x, y); dessineExplosion(w, x, y); dessineVent(w, wnd);