mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-17 11:04:08 +00:00
Implemented faststrcmp, faststricmp, strcasecmp
This commit is contained in:
parent
c075b863d2
commit
c202fc3b55
19 changed files with 101 additions and 53 deletions
|
@ -1,5 +1,6 @@
|
|||
#include "common.h"
|
||||
#include "patcher.h"
|
||||
#include "General.h"
|
||||
#include "Camera.h"
|
||||
#include "ModelInfo.h"
|
||||
|
||||
|
@ -131,7 +132,7 @@ CSimpleModelInfo::FindRelatedModel(void)
|
|||
for(i = 0; i < MODELINFOSIZE; i++){
|
||||
mi = CModelInfo::GetModelInfo(i);
|
||||
if(mi && mi != this &&
|
||||
strcmp(GetName()+3, mi->GetName()+3) == 0){
|
||||
!CGeneral::faststrcmp(GetName()+3, mi->GetName()+3)){
|
||||
assert(mi->IsSimple());
|
||||
this->SetRelatedModel((CSimpleModelInfo*)mi);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue