Originally Posted by Vladinator
Can't blame me for trying, sometimes devs create functions that have one purpose but can fulfill another, in this case they made sure you can't use this for anything else, but it was worth at least trying out. :P
|
It wouldn't surprise me if units were stored as a bitmask or some other representation (not a string) at the C level, which is why this isn't working as you'd expect. It'd also be much faster than a string comparison, which is why this new function is very helpful.