Commits

Benoît Allard  committed a27ff37

Don't harvest when going backward

  • Participants
  • Parent commits 76b2c39

Comments (0)

Files changed (1)

 
     /* clear the harvested part from the field */
     this.harvest = function(field){
+        // Don't harvest when going backward
+        if (this.v < 0) {return;}
         field.context.save();
         field.context.strokeStyle = 'white';
         field.context.fillStyle = 'white';