Skip to content

Commit

Permalink
Merge pull request #228 from bigfoot90/massToRadius-used-twice
Browse files Browse the repository at this point in the history
[bugfix] massToRadius used twice by drawFood
  • Loading branch information
igorantun committed Jun 23, 2015
2 parents 1ca6d50 + 9169d3c commit 9c0fb94
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,11 +449,10 @@
return Math.sqrt(mass / Math.PI) * 10;
}

function drawCircle(centerX, centerY, mass, sides) {
function drawCircle(centerX, centerY, radius, sides) {
var theta = 0;
var x = 0;
var y = 0;
var radius = massToRadius(mass);

graph.beginPath();

Expand Down

0 comments on commit 9c0fb94

Please sign in to comment.