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;
msgBlocks[i] = 0;
}
RETURN_META(MRES_IGNORED);
}
void LightStyle(int style, char *val) {

View File

@ -77,7 +77,7 @@
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)/engine.dll"
OutputFile="$(OutDir)/engine_amxx.dll"
LinkIncremental="1"
GenerateDebugInformation="TRUE"
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);
#ifdef __linux__
off += 5;
off += params[3];
#endif
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);
#ifdef __linux__
off += 5;
off += params[3];
#endif
*((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);
#ifdef __linux__
off += 5;
off += params[3];
#endif
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);
#ifdef __linux__
off += 5;
off += params[3];
#endif
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);
#ifdef __linux__
off += 5;
off += params[3];
#endif
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);
#ifdef __linux__
off += 5;
off += params[3];
#endif
*((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);
#ifdef __linux__
off += 5;
off += params[3];
#endif
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);
#ifdef __linux__
off += 5;
off += params[3];
#endif
REAL fVal = amx_ctof(params[3]);