mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Fixed meta set bug in ServerActivate
Added linux options to pvPrivateData natives
This commit is contained in:
parent
60da2d5621
commit
136873b9ea
@ -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) {
|
||||||
|
@ -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"
|
||||||
|
@ -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]);
|
||||||
|
Loading…
Reference in New Issue
Block a user