From d3da34fcd5ebe79f69560712504230a3b22eee3c Mon Sep 17 00:00:00 2001 From: giersch Date: Wed, 21 Nov 2007 14:30:26 +0000 Subject: [PATCH] . --- chateaux/chateaux.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chateaux/chateaux.cpp b/chateaux/chateaux.cpp index 1002157..16f10e2 100644 --- a/chateaux/chateaux.cpp +++ b/chateaux/chateaux.cpp @@ -247,7 +247,7 @@ int tir(DrawingWindow& w, vy += ay * dt; w.msleep(10); - w.sync(); +// w.sync(); w.setColor("skyblue"); w.fillCircle(wx, wy, 2); // w.setColor("black"); @@ -281,6 +281,7 @@ int jeu1(DrawingWindow& w) do { joueur = 3 - joueur; + w.sync(); std::cout << "-=| Joueur " << joueur << " |=-"; float alpha; @@ -309,7 +310,6 @@ int jeu1(DrawingWindow& w) perdant = tir(w, x0, y0, v0, alpha, x, y); dessineExplosion(w, x, y); dessineVent(w, wnd); - w.sync(); } while (!perdant); dessineFlammes(w, x, y); std::stringstream msg; -- 2.20.1