Corrected database
This commit is contained in:
5
js/l3d/apps/prototype/coin-checker/main.js
vendored
5
js/l3d/apps/prototype/coin-checker/main.js
vendored
@@ -48,6 +48,8 @@ saveCoins = function() {
|
||||
};
|
||||
|
||||
function main() {
|
||||
// Some config
|
||||
L3D.DB.disable();
|
||||
|
||||
// Main container that holds everything
|
||||
container = document.getElementById('container');
|
||||
@@ -63,9 +65,6 @@ function main() {
|
||||
// Set the good size of cameras
|
||||
onWindowResize();
|
||||
|
||||
// Some config
|
||||
L3D.DB.disable();
|
||||
|
||||
Coin.update();
|
||||
startCanvas.render(L3D.StartCanvas.Black);
|
||||
|
||||
|
||||
5
js/l3d/apps/prototype/replay/main.js
vendored
5
js/l3d/apps/prototype/replay/main.js
vendored
@@ -43,6 +43,11 @@ function initThreeElements() {
|
||||
|
||||
function init(data) {
|
||||
|
||||
console.log(data);
|
||||
|
||||
// Some config
|
||||
L3D.DB.disable();
|
||||
|
||||
// Initialize stats counter
|
||||
stats = new Stats();
|
||||
stats.setMode(0);
|
||||
|
||||
@@ -261,9 +261,6 @@ L3D.generateCoins = function(totalCoins, coin_ids) {
|
||||
indices.push(totalCoins[i].id);
|
||||
}
|
||||
|
||||
if (coin_ids === undefined || (coin_ids instanceof Array && coin_ids.length === 0))
|
||||
L3D.DB.Private.sendData('/posts/coin-id', {indices : indices});
|
||||
|
||||
return coins;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user