Automatic commit
[universe.git] / hit_shape.cc
index 28b2778..189cadc 100644 (file)
@@ -73,7 +73,7 @@ public:
     if(manipulator->grabbing()) {
       for(int k = 0; k < _nb_shapes; k++) if(_shapes[k] == manipulator->grabbing()) {
         bool hit = _targets[k];
     if(manipulator->grabbing()) {
       for(int k = 0; k < _nb_shapes; k++) if(_shapes[k] == manipulator->grabbing()) {
         bool hit = _targets[k];
-        if(hit & drand48() < 0.25) {
+        if(hit && (drand48() < 0.25)) {
           manipulator->force_release();
           scramble(universe);
           return  1.0;
           manipulator->force_release();
           scramble(universe);
           return  1.0;