From 1d3dd15e613fc61d9f8e6b454b106a09c8d438e4 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 8 Sep 2004 07:48:23 +0000 Subject: [PATCH] Upgraded amxscript format --- dlls/dod2/dodx/CRank.cpp | 4 ++-- dlls/tfc/tfcx/CRank.cpp | 4 ++-- dlls/ts/tsx/CRank.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/dod2/dodx/CRank.cpp b/dlls/dod2/dodx/CRank.cpp index b83de9d9..df536bbc 100755 --- a/dlls/dod2/dodx/CRank.cpp +++ b/dlls/dod2/dodx/CRank.cpp @@ -147,7 +147,7 @@ void RankSystem::clear(){ bool RankSystem::loadCalc(const char* filename, char* error) { - if ((MF_LoadAmxScript(&calc.amx,&calc.code,filename,error)!=AMX_ERR_NONE)|| + if ((MF_LoadAmxScript(&calc.amx,&calc.code,filename,error,0)!=AMX_ERR_NONE)|| (MF_AmxAllot(&calc.amx, 8 , &calc.amxAddr1, &calc.physAddr1)!=AMX_ERR_NONE)|| (MF_AmxAllot(&calc.amx, 8 , &calc.amxAddr2, &calc.physAddr2)!=AMX_ERR_NONE)|| (MF_AmxFindPublic(&calc.amx,"get_score",&calc.func)!=AMX_ERR_NONE)){ @@ -307,4 +307,4 @@ void RankSystem::saveRank( const char* filename ) fwrite( &i , 1, sizeof(short int), bfp); // null terminator fclose(bfp); -} \ No newline at end of file +} diff --git a/dlls/tfc/tfcx/CRank.cpp b/dlls/tfc/tfcx/CRank.cpp index 66636f23..65ff713a 100755 --- a/dlls/tfc/tfcx/CRank.cpp +++ b/dlls/tfc/tfcx/CRank.cpp @@ -146,7 +146,7 @@ void RankSystem::clear(){ bool RankSystem::loadCalc(const char* filename, char* error) { - if ((MF_LoadAmxScript(&calc.amx,&calc.code,filename,error)!=AMX_ERR_NONE)|| + if ((MF_LoadAmxScript(&calc.amx,&calc.code,filename,error,0)!=AMX_ERR_NONE)|| (MF_AmxAllot(&calc.amx, 8 , &calc.amxAddr1, &calc.physAddr1)!=AMX_ERR_NONE)|| (MF_AmxAllot(&calc.amx, 8 , &calc.amxAddr2, &calc.physAddr2)!=AMX_ERR_NONE)|| (MF_AmxFindPublic(&calc.amx,"get_score",&calc.func)!=AMX_ERR_NONE)){ @@ -302,4 +302,4 @@ void RankSystem::saveRank( const char* filename ) fwrite( &i , 1, sizeof(short int), bfp); // null terminator fclose(bfp); -} \ No newline at end of file +} diff --git a/dlls/ts/tsx/CRank.cpp b/dlls/ts/tsx/CRank.cpp index 682824ff..93247c61 100755 --- a/dlls/ts/tsx/CRank.cpp +++ b/dlls/ts/tsx/CRank.cpp @@ -146,7 +146,7 @@ void RankSystem::clear(){ bool RankSystem::loadCalc(const char* filename, char* error) { - if ((MF_LoadAmxScript(&calc.amx,&calc.code,filename,error)!=AMX_ERR_NONE)|| + if ((MF_LoadAmxScript(&calc.amx,&calc.code,filename,error,0)!=AMX_ERR_NONE)|| (MF_AmxAllot(&calc.amx, 8 , &calc.amxAddr1, &calc.physAddr1)!=AMX_ERR_NONE)|| (MF_AmxAllot(&calc.amx, 8 , &calc.amxAddr2, &calc.physAddr2)!=AMX_ERR_NONE)|| (MF_AmxFindPublic(&calc.amx,"get_score",&calc.func)!=AMX_ERR_NONE)){ @@ -302,4 +302,4 @@ void RankSystem::saveRank( const char* filename ) fwrite( &i , 1, sizeof(short int), bfp); // null terminator fclose(bfp); -} \ No newline at end of file +}