some debug changes

This commit is contained in:
Nikolay Korolev
2020-05-18 00:34:24 +03:00
parent ad8a8913d9
commit 5ab2c85e97
3 changed files with 46 additions and 11 deletions

View File

@ -126,8 +126,6 @@ GetModelFromName(const char *name)
for(i = 0; i < MODELINFOSIZE; i++){
mi = CModelInfo::GetModelInfo(i);
if (mi && strcmp("drink", mi->GetName()) == 0 && strcmp(name, "drink01") == 0)
debug("TEST");
if(mi && mi->GetRwObject() && RwObjectGetType(mi->GetRwObject()) == rpCLUMP &&
strcmpIgnoringDigits(mi->GetName(), name))
return mi;