Skip to content

Commit 1d55bcd

Browse files
author
Ondolin
committed
removed console.logs & updated some deprecated functions
1 parent 1d5c827 commit 1d55bcd

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

logic/dice/dice.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -456,13 +456,13 @@ var dice_body_material;
456456
this.light.target.position.set(0, 0, 0);
457457
this.light.distance = mw * 5;
458458
this.light.castShadow = true;
459-
this.light.shadowCameraNear = mw / 10;
460-
this.light.shadowCameraFar = mw * 5;
461-
this.light.shadowCameraFov = 50;
462-
this.light.shadowBias = 0.001;
459+
this.light.shadow.camera.near = mw / 10;
460+
this.light.shadow.camera.far = mw * 5;
461+
this.light.shadow.camera.fov = 50;
462+
this.light.shadow.bias = 0.001;
463463
this.light.shadowDarkness = 1.1;
464-
this.light.shadowMapWidth = 1024;
465-
this.light.shadowMapHeight = 1024;
464+
this.light.shadow.mapSize.width = 1024;
465+
this.light.shadow.mapSize.height = 1024;
466466
this.scene.add(this.light);
467467

468468
//if (this.desk) this.scene.remove(this.desk);
@@ -519,7 +519,6 @@ var dice_body_material;
519519
}
520520

521521
this.dice_box.prototype.create_dice = function(type, pos, velocity, angle, axis) {
522-
console.log(type);
523522
var dice = that['create_' + type]();
524523
dice.castShadow = true;
525524
dice.dice_type = type;
@@ -651,7 +650,6 @@ var dice_body_material;
651650
}
652651

653652
this.dice_box.prototype.prepare_dices_for_roll = function(vectors) {
654-
console.log(vectors);
655653
this.clear();
656654
this.iteration = 0;
657655
for (var i in vectors) {

logic/dice/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ function after_roll(notation, result) {
8888
];
8989
// else case is already correct
9090

91-
console.log(outCopy);
9291
store.dispatch("console/addToLog", {
9392
type: "roll-response",
9493
log: JSON.stringify(outCopy)

0 commit comments

Comments
 (0)