fix dead air strafe direction
All checks were successful
build / image (push) Successful in 39s

This commit is contained in:
Syncer Deploy
2026-08-31 13:32:00 -04:00
parent 6c345ba595
commit 8a274ecd30
2 changed files with 21 additions and 4 deletions

View File

@@ -126,3 +126,20 @@ test("visible wardens expose pose but redact combat inventory", () => {
assert.equal(replicated.magazine, null);
assert.equal(replicated.reserve, null);
});
test("DEAD AIR strafe-right matches the first-person camera's screen right", () => {
const server = deadAirGame.createServer();
server.addPlayer(1);
const player = server.currentState.players.find((candidate) => candidate.id === 1);
player.x = 0;
player.z = 25;
player.yaw = 0;
assert.deepEqual(server.submitInput(1, {
sequence: 1,
targetTick: 1,
observedTick: 0,
input: input({ strafe: 1, yaw: 0 }),
}), { accepted: true });
server.step();
assert.ok(player.x < 0, `camera-right at yaw 0 should reduce world x, saw ${player.x}`);
});