Open rdebath opened 2 years ago
It's intentionally const so that internal code that uses it performs slightly faster, it wasn't really intended for external code
I suspect the theoretical speed difference is not distinguishable, but that's fine, my crossed out suggestion would apply. But likely with a readonly variable instead of a function.
I changed internal constant to a different name and changed ExtendedCount to readonly (same thing will be done to MaxRaw eventually)
If I have a plugin that looks at the value
Block.MaxRaw
it uses the value that existed when the Plugin was compiled. NOT the value that the variable has now. (Also applies toBlock.ExtendedCount
)This happens if the plugin is compiled without
TEN_BIT_BLOCKS
set but is attached to a server with it set (or vs. versa).Doh: Make it "readonly" not "const".
Can you add a function to return this value as it is now and (probably) make the existing constantinternal
.You might consider renaming the existing constant so existing Plugins like NA2's CmdMake only need a recompile not a code change.