Closed ghost closed 4 years ago
I really don't like naming it arrayset
, because that would imply different implementation like this:
for (size_it i = 0; i < HighestVal; ++i) {
m_ScriptData.alScriptArrays[lArray][i] = lVal;
}
So I'll leave this issue open, but I'll not accept renaming PR for it. At least not until I hear the word of god (Torr), that both the implementation should be memset
and name of the command should be arrayset
.
Now that the fix is merged to zandronum-stable
, I'm adding this function definition as arrayset
to botc.
BTW, do you know if there are official builds for that stable repo?
After navigating through Zandronum's source code, I found the following in src/bots.cpp:
since DH_ARRAYSET is what we call now memset(), and the error says an error occurred with the command "arrayset", I suggest a renaming of that function, or the creation of an alias for it.