Added some returns in engfunc() and in dllfunc()

This commit is contained in:
Christian Hammacher 2005-12-31 15:09:14 +00:00
parent d1b290c7a4
commit 531cc5f2c1
2 changed files with 3 additions and 1 deletions

View File

@ -136,10 +136,11 @@ static cell AMX_NATIVE_CALL dllfunc(AMX *amx,cell *params)
case DLLFunc_ParmsNewLevel: // void ) ( void );
gpGamedllFuncs->dllapi_table->pfnParmsNewLevel();
return 1;
case DLLFunc_ParmsChangeLevel: // void ) ( void );
gpGamedllFuncs->dllapi_table->pfnParmsChangeLevel();
return 1;
// Returns string describing current .dll. E.g., TeamFotrress 2, Half-Life
case DLLFunc_GetGameDescription: // const char * )( void );

View File

@ -556,6 +556,7 @@ static cell AMX_NATIVE_CALL engfunc(AMX *amx, cell *params)
index = cRet[0];
CHECK_ENTITY(index);
(*g_engfuncs.pfnFreeEntPrivateData)(INDEXENT2(index));
return 1;
// pfnSzFromIndex