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 18, 2016
1 parent c370112 commit 66744a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ io.on('connection', function (socket) {
});
socket.on('2', function(virusCell) {
function splitCell(cell) {
if(cell.mass >= 2) {
if(cell.mass >= c.defaultPlayerMass * 2) {
cell.mass = cell.mass/2;
cell.radius = util.massToRadius(cell.mass);
currentPlayer.cells.push({
Expand Down

0 comments on commit 66744a3

Please sign in to comment.