Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Commit

Permalink
Code style #275 + #292
Browse files Browse the repository at this point in the history
  • Loading branch information
clemens-tolboom committed Jul 11, 2016
1 parent 8cf3125 commit 4368e5e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bot.user.js
Expand Up @@ -916,7 +916,7 @@ var scheduler = window.scheduler = (function() {
// Init
if (this.frequency === 0) {
// A prey is food too!
this.frequency = bot.opt.foodFrames
this.frequency = bot.opt.foodFrames;
}

if (this.step < this.frequency) {
Expand Down Expand Up @@ -973,8 +973,7 @@ var scheduler = window.scheduler = (function() {
bot.computeFoodGoal();
if (bot.currentFood) {
window.setAcceleration(bot.foodAccel());
}
else {
} else {
this.step = 0;
}

Expand Down Expand Up @@ -1030,7 +1029,7 @@ var scheduler = window.scheduler = (function() {
},
execute: function() {
window.goalCoordinates = this.point;
canvasUtil.setMouseCoordinates(canvasUtil.mapToMouse(window.goalCoordinates));
canvasUtil.setMouseCoordinates(canvasUtil.mapToMouse(this.point));
}
},
{
Expand Down

0 comments on commit 4368e5e

Please sign in to comment.