[Parity][map][S3][F] tile-atlas / map-service 中的潜在兜底(目前没有运行时调用者,或只在离线路径上使用) #633
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?
来源审计项:
map#14— [S3][F] tile-atlas / map-service 中的潜在兜底(目前没有运行时调用者,或只在离线路径上使用)位置:
src/client/map/tile-atlas.ts:308-436(resolveCellTile):const active = masked.length > 0 ? masked : allCandidates:掩码过滤后为空就忽略掩码。tile-atlas.ts:153-154(fromDt1Map):路径正则act([1-5])匹配失败时,ownerAct默认为 1(如Expansion\…路径)。只被MapService.fromEnv/initWithEnv在不带图集时使用。src/client/map/map-service.ts:442-445:getCollisionWorldSubTile在没有activeView时返回魔数0x1c09。无调用者。原版: —(不存在这类兜底)
影响: 当前不可见;一旦接入就会掩盖 pin / 数据错误。
建议: 改成抛错,或删除死代码。
已有 issue: —