-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: janusweb action: commit revision: path_from: revision_from: 75a63c6680ca1a0898cd1804c3654a592ddfbc21: path_to: revision_to:
commit 75a63c6680ca1a0898cd1804c3654a592ddfbc21 Author: James Baicoianu <james_github@baicoianu.com> Date: Mon Sep 20 12:58:27 2021 -0700 Call object.start() for new avatars diff --git a/scripts/multiplayermanager.js b/scripts/multiplayermanager.js
--- a/scripts/multiplayermanager.js +++ b/scripts/multiplayermanager.js @@ -319,9 +319,9 @@ console.log('[MultiplayerManager] part', room.url); var roomId = data.roomId; var room = this.rooms[roomId] || this.activeroom; -console.log('[MultiplayerManager] spawn remote guy', userId, roomId, room); var spawnpos = (data.position && data.position.pos ? data.position.pos.split(" ").map(parseFloat) : [0,0,0]); + //console.log('[MultiplayerManager] spawn remote guy', userId, roomId, room, spawnpos); this.remoteplayers[userId] = room.spawn('remoteplayer', userId, { position: spawnpos, player_id: userId, player_name: userId, pickable: false, collidable: false, janus: this.janusweb, room: room}); var remote = this.remoteplayers[userId]; @@ -330,6 +330,7 @@ console.log('[MultiplayerManager] spawn remote guy', userId, roomId, room); // If a new player spawned, let's send an avatar update ASAP this.updateAvatar(); + remote.start(); return remote; } this.updateAvatar = function() { @@ -390,6 +391,7 @@ console.log('[MultiplayerManager] spawn remote guy', userId, roomId, room); if (remote.room !== room) { remote.setRoom(room); + remote.start(); } remote.updateData(movedata);
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 14:31:54 2024