mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2025-01-01 08:43:01 +05:00
use int32 instead of uint32 for model IDs
This commit is contained in:
parent
4b42bf8f10
commit
35cc3a1562
2 changed files with 5 additions and 5 deletions
|
@ -1048,7 +1048,7 @@ void ReadDoubleRearWheels(const wchar_t* pPath)
|
||||||
token = wcstok_s( textLine, L"=", &context );
|
token = wcstok_s( textLine, L"=", &context );
|
||||||
|
|
||||||
int toList = _wtoi( token );
|
int toList = _wtoi( token );
|
||||||
if ( toList != 0 )
|
if ( toList > 0 )
|
||||||
{
|
{
|
||||||
bool value = _wtoi( wcstok_s( nullptr, L"=", &context ) ) != 0;
|
bool value = _wtoi( wcstok_s( nullptr, L"=", &context ) ) != 0;
|
||||||
doubleRearWheelsList.emplace_back( toList, value );
|
doubleRearWheelsList.emplace_back( toList, value );
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
#include "TimerSA.h"
|
#include "TimerSA.h"
|
||||||
#include "DelimStringReader.h"
|
#include "DelimStringReader.h"
|
||||||
|
|
||||||
std::vector<unsigned int> vecRotorExceptions;
|
std::vector<int32_t> vecRotorExceptions;
|
||||||
|
|
||||||
static bool ShouldIgnoreRotor( unsigned int id )
|
static bool ShouldIgnoreRotor( int32_t id )
|
||||||
{
|
{
|
||||||
return std::find( vecRotorExceptions.begin(), vecRotorExceptions.end(), id ) != vecRotorExceptions.end();
|
return std::find( vecRotorExceptions.begin(), vecRotorExceptions.end(), id ) != vecRotorExceptions.end();
|
||||||
}
|
}
|
||||||
|
@ -62,8 +62,8 @@ void ReadRotorFixExceptions(const wchar_t* pPath)
|
||||||
GetPrivateProfileSectionW( L"RotorFixExceptions", reader.GetBuffer(), reader.GetSize(), pPath );
|
GetPrivateProfileSectionW( L"RotorFixExceptions", reader.GetBuffer(), reader.GetSize(), pPath );
|
||||||
while ( const wchar_t* str = reader.GetString() )
|
while ( const wchar_t* str = reader.GetString() )
|
||||||
{
|
{
|
||||||
unsigned int toList = _wtoi( str );
|
int toList = _wtoi( str );
|
||||||
if ( toList != 0 )
|
if ( toList > 0 )
|
||||||
vecRotorExceptions.push_back( toList );
|
vecRotorExceptions.push_back( toList );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue