fix(radar): 恢复死亡坦克的红叉标记(含血量辅助判死)

This commit is contained in:
TermiNexus committed 2026-10-20 11:29:47 +08:00
1 parent 2520a91bf1
commit 62357fcd9f
3 files changed
+6 -3

No files matched your search

@@ -1422,11 +1422,12 @@
if (radarY < cy - radius) radarY = cy - radius;
if (radarY > cy + radius) radarY = cy + radius;
// 死亡判断(同 3D透视):可见坦克 = ACTIVE(3) 或 SEMI_ACTIVE(2);其余直接跳过(不再画红叉)
// 死亡判断(同 3D透视):可见坦克 = ACTIVE(3) 或 SEMI_ACTIVE(2);其余画红 ×
// 辅助:血量归零也视为死亡(状态字段偶有滞后)
var tankState = GetTankState(tank);
var hp = GetTankHealth(tank);
if ((tankState !== 2 && tankState !== 3) || (hp && hp.current <= 0)) {
DrawDeadCross(radarX, radarY);
deadCount++;
continue;
}
+2 -1
View File
@@ -1422,11 +1422,12 @@
if (radarY < cy - radius) radarY = cy - radius;
if (radarY > cy + radius) radarY = cy + radius;
// 死亡判断(同 3D透视):可见坦克 = ACTIVE(3) 或 SEMI_ACTIVE(2);其余直接跳过(不再画红叉)
// 死亡判断(同 3D透视):可见坦克 = ACTIVE(3) 或 SEMI_ACTIVE(2);其余画红 ×
// 辅助:血量归零也视为死亡(状态字段偶有滞后)
var tankState = GetTankState(tank);
var hp = GetTankHealth(tank);
if ((tankState !== 2 && tankState !== 3) || (hp && hp.current <= 0)) {
DrawDeadCross(radarX, radarY);
deadCount++;
continue;
}
+2 -1
View File
@@ -620,11 +620,12 @@
if (radarY < cy - radius) radarY = cy - radius;
if (radarY > cy + radius) radarY = cy + radius;
// 死亡判断(同 3D透视):可见坦克 = ACTIVE(3) 或 SEMI_ACTIVE(2);其余直接跳过(不再画红叉)
// 死亡判断(同 3D透视):可见坦克 = ACTIVE(3) 或 SEMI_ACTIVE(2);其余画红 ×
// 辅助:血量归零也视为死亡(状态字段偶有滞后)
var tankState = GetTankState(tank);
var hp = GetTankHealth(tank);
if ((tankState !== 2 && tankState !== 3) || (hp && hp.current <= 0)) {
DrawDeadCross(radarX, radarY);
deadCount++;
continue;
}