Skip to content

Commit b5ed33f

Browse files
committed
Improvements for automatic TXD resizing #2
1 parent fe599b8 commit b5ed33f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

MTA10/mods/deathmatch/logic/CResource.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -364,13 +364,8 @@ void CResource::Load ( CClientEntity *pRootEntity )
364364
else
365365
if ( pResourceFile->IsAutoDownload() )
366366
{
367-
// Load the file
368-
std::vector < char > buffer;
369-
FileLoad ( pResourceFile->GetName (), buffer );
370-
unsigned int iSize = buffer.size();
371-
372-
// Check the contents
373-
if ( iSize > 0 && CChecksum::GenerateChecksumFromBuffer ( &buffer.at ( 0 ), iSize ) == pResourceFile->GetServerChecksum () )
367+
// Check the file contents
368+
if ( CChecksum::GenerateChecksumFromFile ( pResourceFile->GetName () ) == pResourceFile->GetServerChecksum () )
374369
{
375370
SString strError = "";
376371
bool bIsBad = CheckFileForCorruption ( pResourceFile->GetName ( ), strError );

0 commit comments

Comments
 (0)