- Fix for issue 660 (changelings have become slower)

-- I removed the string comparison, which was expensive (the test is not necessary anymore, since it was "shielding" us from fake types (names), which are not creature subtypes, and therefore do not go through). I also moved one function call outside of the loop, just in case that wasn't optimized by the compiler.
- Removed unused Subtypes.cpp function (I don't really want people to use it, it can be quite expensive if used incorrectly)
- moved a test for issue 501 that has been fixed a while ago (we forgot to add the test to the test suite)
This commit is contained in:
wagic.the.homebrew
2011-05-15 14:38:41 +00:00
parent 2ab3d27cd1
commit 2f3e6b56e5
6 changed files with 7 additions and 28 deletions
-1
View File
@@ -41,7 +41,6 @@ public:
Subtypes();
int find(string subtype, bool forceAdd = true);
string find(unsigned int id);
bool isSubtypeOfType(string subtype, string type);
bool isSubtypeOfType(unsigned int subtype, unsigned int type);
bool isSuperType(unsigned int type);
bool isType(unsigned int type);