mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-07 22:40:33 +00:00
full script basic support
This commit is contained in:
parent
5c8888d2ed
commit
a5b84eb9fe
18 changed files with 675 additions and 127 deletions
|
@ -104,7 +104,7 @@ strcmpIgnoringDigits(const char *s1, const char *s2)
|
|||
c2 = toupper(c2);
|
||||
#endif
|
||||
|
||||
if(c1 != c2)
|
||||
if(c1 && c2 && c1 != c2)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -126,6 +126,8 @@ 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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue