Fixed meta set bug in ServerActivate

Added linux options to pvPrivateData natives
This commit is contained in:
David Anderson 2004-06-25 20:51:48 +00:00
parent 60da2d5621
commit 136873b9ea
3 changed files with 11 additions and 9 deletions

View File

@ -138,6 +138,8 @@ void ServerActivate(edict_t *pEdictList, int edictCount, int clientMax)
msgHooks[i] = 0; msgHooks[i] = 0;
msgBlocks[i] = 0; msgBlocks[i] = 0;
} }
RETURN_META(MRES_IGNORED);
} }
void LightStyle(int style, char *val) { void LightStyle(int style, char *val) {

View File

@ -77,7 +77,7 @@
Name="VCCustomBuildTool"/> Name="VCCustomBuildTool"/>
<Tool <Tool
Name="VCLinkerTool" Name="VCLinkerTool"
OutputFile="$(OutDir)/engine.dll" OutputFile="$(OutDir)/engine_amxx.dll"
LinkIncremental="1" LinkIncremental="1"
GenerateDebugInformation="TRUE" GenerateDebugInformation="TRUE"
SubSystem="2" SubSystem="2"

View File

@ -1351,7 +1351,7 @@ static cell AMX_NATIVE_CALL get_offset_short(AMX *amx, cell *params)
edict_t *pEnt = INDEXENT(idx); edict_t *pEnt = INDEXENT(idx);
#ifdef __linux__ #ifdef __linux__
off += 5; off += params[3];
#endif #endif
return *((short *)pEnt->pvPrivateData + off); return *((short *)pEnt->pvPrivateData + off);
@ -1369,7 +1369,7 @@ static cell AMX_NATIVE_CALL set_offset_short(AMX *amx, cell *params)
edict_t *pEnt = INDEXENT(idx); edict_t *pEnt = INDEXENT(idx);
#ifdef __linux__ #ifdef __linux__
off += 5; off += params[3];
#endif #endif
*((short *)pEnt->pvPrivateData + off) = (short)params[3]; *((short *)pEnt->pvPrivateData + off) = (short)params[3];
@ -1389,7 +1389,7 @@ static cell AMX_NATIVE_CALL get_offset_char(AMX *amx, cell *params)
edict_t *pEnt = INDEXENT(idx); edict_t *pEnt = INDEXENT(idx);
#ifdef __linux__ #ifdef __linux__
off += 5; off += params[3];
#endif #endif
char r = *((char *)pEnt->pvPrivateData + off); char r = *((char *)pEnt->pvPrivateData + off);
@ -1408,7 +1408,7 @@ static cell AMX_NATIVE_CALL set_offset_char(AMX *amx, cell *params)
edict_t *pEnt = INDEXENT(idx); edict_t *pEnt = INDEXENT(idx);
#ifdef __linux__ #ifdef __linux__
off += 5; off += params[3];
#endif #endif
char data = params[3]; char data = params[3];
@ -1429,7 +1429,7 @@ static cell AMX_NATIVE_CALL get_offset_int(AMX *amx, cell *params)
edict_t *pEnt = INDEXENT(idx); edict_t *pEnt = INDEXENT(idx);
#ifdef __linux__ #ifdef __linux__
off += 5; off += params[3];
#endif #endif
return *((int *)pEnt->pvPrivateData + off); return *((int *)pEnt->pvPrivateData + off);
@ -1447,7 +1447,7 @@ static cell AMX_NATIVE_CALL set_offset_int(AMX *amx, cell *params)
edict_t *pEnt = INDEXENT(idx); edict_t *pEnt = INDEXENT(idx);
#ifdef __linux__ #ifdef __linux__
off += 5; off += params[3];
#endif #endif
*((int *)pEnt->pvPrivateData + off) = params[3]; *((int *)pEnt->pvPrivateData + off) = params[3];
@ -1467,7 +1467,7 @@ static cell AMX_NATIVE_CALL get_offset_float(AMX *amx, cell *params)
edict_t *pEnt = INDEXENT(idx); edict_t *pEnt = INDEXENT(idx);
#ifdef __linux__ #ifdef __linux__
off += 5; off += params[3];
#endif #endif
REAL fRet = (REAL)(*((REAL*)pEnt->pvPrivateData + off)); REAL fRet = (REAL)(*((REAL*)pEnt->pvPrivateData + off));
@ -1487,7 +1487,7 @@ static cell AMX_NATIVE_CALL set_offset_float(AMX *amx, cell *params)
edict_t *pEnt = INDEXENT(idx); edict_t *pEnt = INDEXENT(idx);
#ifdef __linux__ #ifdef __linux__
off += 5; off += params[3];
#endif #endif
REAL fVal = amx_ctof(params[3]); REAL fVal = amx_ctof(params[3]);