use int32 instead of uint32 for model IDs

This commit is contained in:
Silent 2017-06-20 17:15:44 +02:00
parent 4b42bf8f10
commit 35cc3a1562
2 changed files with 5 additions and 5 deletions

View file

@ -1048,7 +1048,7 @@ void ReadDoubleRearWheels(const wchar_t* pPath)
token = wcstok_s( textLine, L"=", &context );
int toList = _wtoi( token );
if ( toList != 0 )
if ( toList > 0 )
{
bool value = _wtoi( wcstok_s( nullptr, L"=", &context ) ) != 0;
doubleRearWheelsList.emplace_back( toList, value );

View file

@ -6,9 +6,9 @@
#include "TimerSA.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();
}
@ -62,8 +62,8 @@ void ReadRotorFixExceptions(const wchar_t* pPath)
GetPrivateProfileSectionW( L"RotorFixExceptions", reader.GetBuffer(), reader.GetSize(), pPath );
while ( const wchar_t* str = reader.GetString() )
{
unsigned int toList = _wtoi( str );
if ( toList != 0 )
int toList = _wtoi( str );
if ( toList > 0 )
vecRotorExceptions.push_back( toList );
}
}