From df6385f6d68424a373d95a2bd2bbe0153e6554bb Mon Sep 17 00:00:00 2001 From: AndreasLauvhjell Date: Sun, 1 Nov 2026 02:43:47 +0100 Subject: [PATCH] fix: define WorldPref::mTickCount for the runtime_pair harness The grenade trace compiled into PointPhysicsNode.cpp reads the tick count, whose definition lives in Core/System.cpp. The harness does not link that file, so bf2_runtime_pair failed with LNK2019 and bf2_run_checks never ran. Add a test-only [TEMP] definition. Co-Authored-By: Claude Opus 5.5 (1M context) --- Code/Tests/runtime_pair.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Code/Tests/runtime_pair.cpp b/Code/Tests/runtime_pair.cpp index d2b45845b..ddfa7a878 100644 --- a/Code/Tests/runtime_pair.cpp +++ b/Code/Tests/runtime_pair.cpp @@ -157,6 +157,13 @@ unsigned int Random::getRaw() return m_seed; } +// [TEMP] The grenade trace in PointPhysicsNode.cpp reads the tick count, and its production +// definition sits in Core/System.cpp, which this harness does not link. Tests here leave the trace +// disarmed, so the counter only has to exist. +namespace WorldPref { +unsigned int mTickCount = 0; +} // namespace WorldPref + namespace world { ClassManager* classManager = 0;