Skip to content

Commit

Permalink
Update server.js
Browse files Browse the repository at this point in the history
  • Loading branch information
PortPixel authored Jul 11, 2016
1 parent ee01fda commit 220f37b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ io.on('connection', function (socket) {
console.log('A user connected!', socket.handshake.query.type);

var type = socket.handshake.query.type;
var radius = util.massToRadius(c.defaultPlayerMass);
//var radius = util.massToRadius(c.defaultPlayerMass);
var radius = util.massToRadius(c.mass);
var position = c.newPlayerInitialPosition == 'farthest' ? util.uniformPosition(users, radius) : util.randomPosition(radius);

var cells = [];
Expand Down

0 comments on commit 220f37b

Please sign in to comment.