Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
.
authorgiersch <giersch>
Wed, 21 Nov 2007 14:35:03 +0000 (14:35 +0000)
committergiersch <giersch>
Wed, 21 Nov 2007 14:35:03 +0000 (14:35 +0000)
chateaux/chateaux.cpp

index 16f10e2..c0c9ade 100644 (file)
@@ -247,7 +247,6 @@ int tir(DrawingWindow& w,
         vy += ay * dt;
 
         w.msleep(10);
-//         w.sync();
         w.setColor("skyblue");
         w.fillCircle(wx, wy, 2);
 //         w.setColor("black");
@@ -281,7 +280,6 @@ int jeu1(DrawingWindow& w)
     do {
         joueur = 3 - joueur;
 
-        w.sync();
         std::cout << "-=| Joueur " << joueur << " |=-";
 
         float alpha;
@@ -322,7 +320,6 @@ int jeu1(DrawingWindow& w)
     w.setBgColor("white");
     w.drawTextBg(w.width / 2, w.height / 3, msg.str().c_str(),
                  Qt::AlignCenter);
-    w.sync();
     std::cout << msg.str() << std::endl;
     return perdant;
 }