F11 (suite) : regard de reference par tick serveur, une inondation de paquets ne le chasse plus

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cette révision appartient à :
gastineltetClaude Opus 5.5 a révisé 2026-10-14 09:19:24 +02:00
1 Parent ec17ccae5d
révision 6329cd3d63
3 fichiers modifiés
+46 -13

Aucun fichier ne correspond à votre recherche

+17
Voir le fichier
@@ -487,4 +487,21 @@ class AuditFaillesTest {
}
assertTrue(vu, "bateau à 8 blocs/tick sur la glace : vu");
}
/** Revue de sécurité de F11 : dix paquets de rotation par tick avant le coup ne chassent plus le regard de référence. */
@Test
void F11_inondation_de_rotations_vue() {
boolean vu = false;
for (int tick = 0; tick < 200; tick++) {
long now = tick * 50L;
int phase = tick % 7;
if (phase == 2 || phase == 3) {
for (int k = 0; k < 10; k++) vu |= contient(moteur.regard(j, now, EtatJoueur::normal, 90f, 0f), Controle.ROTATION);
if (phase == 3) moteur.attaque(j, now, EtatJoueur.normal(), 0.0, 100 + tick % 3, true);
} else {
vu |= contient(moteur.regard(j, now, EtatJoueur::normal, 0f, 0f), Controle.ROTATION);
}
}
assertTrue(vu, "rotation vers la cible sur deux ticks inondés de paquets, coup, retour : vu");
}
}