j134 fire fix: share ONE fire_tracker across tfil/ring/strafe/learned/surf (TR_FIRE_FIX, default on); env-gated TR_FIRE_DIAG alignment trace
This commit is contained in:
@@ -131,7 +131,17 @@ proc testDefaultParity() =
|
||||
# regression — see the file header). With the pillar restored via
|
||||
# TR_TFIL_PILLAR_ON=1 the old golden would no longer match, by design.
|
||||
doAssert fileExists(goldenPath), "missing golden: " & goldenPath
|
||||
# j134: the golden was generated from the SHIPPED detector. Force the shipped
|
||||
# fire-detection path (`TR_FIRE_FIX=0`) for this check so it still proves the
|
||||
# PRE-CHANGE path is byte-identical. The correction ON legitimately changes
|
||||
# the path (it no longer drops an over-cap energy delta), which is the whole
|
||||
# point of j134 — see `test_strafe_fire_fix.nim` for the per-behaviour checks.
|
||||
when declared(TfilFireFix):
|
||||
let savedFireFix = TfilFireFix
|
||||
TfilFireFix = false
|
||||
let recs = replay(loadStates(), loadRoundStarts())
|
||||
when declared(TfilFireFix):
|
||||
TfilFireFix = savedFireFix
|
||||
var golden: seq[string]
|
||||
for rawLine in lines(goldenPath):
|
||||
if rawLine.startsWith("#"): continue
|
||||
|
||||
Reference in New Issue
Block a user