[Parity][render][S2][R] 相机 Y 偏 −16 与输入 / 拾取坐标反算不一致;拾取圆 36 px 忽略 monstats2 / objects.txt 的选择框 #610
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
来源审计项:
render#10— [S2][R] 相机 Y 偏 −16 与输入 / 拾取坐标反算不一致;拾取圆 36 px 忽略 monstats2 / objects.txt 的选择框src/client/scene/world-renderer.ts:1052(camY = playerWorld.y - 16,:1212小地图同样使用);src/client/view/scene-source.ts:320-323(cameraTopLeft不减 16)、:422-482(pickUnitAtScreen);src/client/view/viewport-profile.ts:223-234(screenToWorld)、:305-319(screenToSubTile,都假设玩家在h/2);render/renderer.ts:163(u_camera是屏幕中心)monstats2.txt的 htTop / htLeft / htWidth / htHeight / noGfxHitTest / isSel / noSel / corpseSel(例如 #0 skeleton1、#5 zombie1 corpseSel=1),以及objects.txt的 Selectable0-7(例如 #30 Inifuss Selectable0=1,#59 TP Selectable0=0)。烘焙器已经导出hitBox(baker/packers/pack-animdata.ts:252-258),但客户端没有任何地方使用。screenToWorld/screenToSubTile/cameraTopLeft统一成一个常量(先确定原版值);拾取改为按 monstats2 ht* 的矩形(noGfxHitTest=0 时按帧像素),并遵守 isSel / noSel / corpseSel / Selectable。