mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Removed GetChannelTypeFromName(), was useless
This commit is contained in:
parent
aeba0e0f6f
commit
02ef85e390
2 changed files with 0 additions and 43 deletions
|
@ -273,48 +273,6 @@ int GetBoneChannelType(const char* name)
|
|||
return 3;
|
||||
}
|
||||
|
||||
int GetChannelTypeFromName(const char *name)
|
||||
{
|
||||
int i;
|
||||
size_t len;
|
||||
|
||||
if (!name) {
|
||||
return 2;
|
||||
}
|
||||
|
||||
for (i = 0; i < sizeof(bogusNameTable) / sizeof(bogusNameTable[0]); i++) {
|
||||
if (!Q_stricmp(name, bogusNameTable[i])) {
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
||||
if (strstr(name, "Bip0") && !strstr(name, "Bip01") && !strstr(name, "Footsteps")) {
|
||||
return 2;
|
||||
}
|
||||
|
||||
len = strlen(name);
|
||||
|
||||
if (len >= 4) {
|
||||
if (!memcmp(name + len - 4, " rot", 5)) {
|
||||
return 0;
|
||||
} else if (!memcmp(name + len - 4, " pos", 5)) {
|
||||
return 1;
|
||||
} else if (len >= 6) {
|
||||
if (!memcmp(name + len - 4, " rotFK", 7)) {
|
||||
return 2;
|
||||
} else {
|
||||
return 3;
|
||||
}
|
||||
} else {
|
||||
return 3;
|
||||
}
|
||||
} else {
|
||||
return 3;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
int ChannelNameTable::RegisterChannel(const char *name)
|
||||
{
|
||||
int index;
|
||||
|
|
|
@ -58,7 +58,6 @@ private:
|
|||
};
|
||||
|
||||
int GetBoneChannelType(const char* name);
|
||||
int GetChannelTypeFromName(const char *name);
|
||||
|
||||
#else
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue