CForward::ProcessArguments returns whether the arguments are valid, but
its error paths return !!SetError(...), which is true for any error
code. Mismatched arguments were therefore accepted and the forward ran
anyway, while m_errstate stayed set and made the next Execute() on that
forward fail with a stale error.
Claude-Session: https://claude.ai/code/session_01BxFXSTjEk7Dub57XRmVfqU
Co-authored-by: Claude Opus 5.5 <[email protected]>
* Use ReentrantList for sound hooks
* Fix Plugin_Changed preventing other sound hooks from running
* Fix sound changes being dropped when a hook removes itself
* Build sdktools for hl2sdk-mock
The test_format script requires it.
* Fix test_format %T translation test
%T expects a client index and translation phrase as arguments, the test was passing a language id and a phrase.
It never ran due to sdktools missing on the mock srcds before.
* mocktest: Check for passing tests or exceptions too
When sourcemod wouldn't even load the tests were still green since there was no "FAIL" in the output :D
* Test 32bit x86 srcds too
* Build against MMS 1.12-dev
This brings in some compiler fixes and the new ".size" property for
arrays.
The extension loader will also now once again accept version 9
extensions. Version 10 has been blacklisted. The IPluginContext API has
been restored to be compatible with v9.
SourcePawn 2 supports passing the variable arguments through to another function natively.
Instead of using `VFormat` you can just call `Format(buf, sizeof(buf), fmt, ...)` directly with the ellipsis `...`.
This broke plugins using VFormat. Add a macro to transparently replace `VFormat` with `Format` calls when compiling with the SourcePawn 2 compiler to keep the plugins from complaining about a missing `VFormat`.
Preprocessor macros are not affected by `#pragma deprecated` so we cannot warn about this yet.
* Root menu Handles during callbacks
* Delete unused AutoHandleRooter struct
* Fix crash when a vote is cancelled from its start callback
* menus: root vote menu during start callback
---------
Co-authored-by: Nicholas Hastings <[email protected]>