fix game3-7 and lobbyA และB
This commit is contained in:
@@ -4145,6 +4145,20 @@
|
||||
if (rb.direction) b.direction = rb.direction;
|
||||
b.isWalking = !!rb.isWalking;
|
||||
});
|
||||
/* [DBG-L2] บันทึกตำแหน่งบอทเทียบขนาดแมปทุก ~4วิ → ดูว่าบอท "นอกฉาก" ที่พิกัดไหน */
|
||||
try {
|
||||
if (!window.__rlBotDbgT || Date.now() - window.__rlBotDbgT > 4000) {
|
||||
window.__rlBotDbgT = Date.now();
|
||||
const w = (mapData && mapData.width) || 0, h = (mapData && mapData.height) || 0;
|
||||
const rows = [];
|
||||
lobbyBots.forEach((b, id) => {
|
||||
const tx = (b.botSyncTX != null ? b.botSyncTX : b.x);
|
||||
const ty = (b.botSyncTY != null ? b.botSyncTY : b.y);
|
||||
rows.push(String(id).replace('__lobby_bot_', 'b') + ':' + (b.x != null ? Number(b.x).toFixed(1) : '?') + ',' + (b.y != null ? Number(b.y).toFixed(1) : '?') + '->' + (Number.isFinite(tx) ? Number(tx).toFixed(1) : '?') + ',' + (Number.isFinite(ty) ? Number(ty).toFixed(1) : '?'));
|
||||
});
|
||||
lobbyLog('bot-pos', 'map=' + w + 'x' + h + ' n=' + lobbyBots.size + ' [' + rows.join(' ') + ']');
|
||||
}
|
||||
} catch (e) { /* ignore */ }
|
||||
});
|
||||
|
||||
/* L3 ฆ่าผี: server ส่ง roster จริงทั้งหมดเป็นระยะ → ตัด peer ที่ไม่อยู่ในนั้นทิ้ง
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1648,7 +1648,7 @@
|
||||
<script src="js/version.js?v=0.0122"></script>
|
||||
<script src="js/customize-popup.js?v=40" data-customize-triggers="" data-customize-asset-base="img/03-5-Customize"></script>
|
||||
<script src="js/achievements.js?v=0.002" data-asset-base="img/03-6-Profile"></script>
|
||||
<script src="js/room-lobby.js?v=0.0330"></script>
|
||||
<script src="js/room-lobby.js?v=0.0331"></script>
|
||||
<div class="version-tag">v —</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user