Skip to content
Permalink
Browse files

PassType typo fixup (#1018)

* PassType typo fixup

Just some little observations, I will look up for more in other files whenever I can

* Update natives.cpp

* Update outputnatives.cpp
  • Loading branch information...
TheDS1337 authored and psychonic committed May 15, 2019
1 parent 7e41893 commit f9ce25a7feb8b75c36af196bb2100abf11efb831
Showing with 9 additions and 9 deletions.
  1. +2 −2 extensions/cstrike/natives.cpp
  2. +2 −2 extensions/sdktools/outputnatives.cpp
  3. +5 −5 extensions/tf2/natives.cpp
@@ -305,7 +305,7 @@ static cell_t CS_TerminateRound(IPluginContext *pContext, const cell_t *params)
REGISTER_NATIVE_ADDR("TerminateRound",
PassInfo pass[2]; \
pass[0].flags = PASSFLAG_BYVAL; \
pass[0].type = PassType_Basic; \
pass[0].type = PassType_Float; \
pass[0].size = sizeof(float); \
pass[1].flags = PASSFLAG_BYVAL; \
pass[1].type = PassType_Basic; \
@@ -327,7 +327,7 @@ static cell_t CS_TerminateRound(IPluginContext *pContext, const cell_t *params)
REGISTER_NATIVE_ADDR("TerminateRound",
PassInfo pass[4]; \
pass[0].flags = PASSFLAG_BYVAL; \
pass[0].type = PassType_Basic; \
pass[0].type = PassType_Float; \
pass[0].size = sizeof(float); \
pass[1].flags = PASSFLAG_BYVAL; \
pass[1].type = PassType_Basic; \
@@ -337,7 +337,7 @@ static cell_t FireEntityOutput(IPluginContext *pContext, const cell_t *params)
pass[6].type = PassType_Basic;
pass[6].size = sizeof(CBaseEntity *);
pass[7].flags = PASSFLAG_BYVAL;
pass[7].type = PassType_Basic;
pass[7].type = PassType_Float;
pass[7].size = sizeof(float);
#else
int iMaxParam = 4;
@@ -353,7 +353,7 @@ static cell_t FireEntityOutput(IPluginContext *pContext, const cell_t *params)
pass[2].type = PassType_Basic;
pass[2].size = sizeof(CBaseEntity *);
pass[3].flags = PASSFLAG_BYVAL;
pass[3].type = PassType_Basic;
pass[3].type = PassType_Float;
pass[3].size = sizeof(float);
#endif
if (!(g_pFireOutput = g_pBinTools->CreateCall(addr, CallConv_ThisCall, NULL, pass, iMaxParam)))
@@ -55,7 +55,7 @@ cell_t TF2_MakeBleed(IPluginContext *pContext, const cell_t *params)
pass[1].type = PassType_Basic; \
pass[2].flags = PASSFLAG_BYVAL; \
pass[2].size = sizeof(float); \
pass[2].type = PassType_Basic; \
pass[2].type = PassType_Float; \
pass[3].flags = PASSFLAG_BYVAL; \
pass[3].size = sizeof(int); \
pass[3].type = PassType_Basic; \
@@ -110,7 +110,7 @@ cell_t TF2_Burn(IPluginContext *pContext, const cell_t *params)
pass[1].type = PassType_Basic; \
pass[2].flags = PASSFLAG_BYVAL; \
pass[2].size = sizeof(float); \
pass[2].type = PassType_Basic; \
pass[2].type = PassType_Float; \
pWrapper = g_pBinTools->CreateCall(addr, CallConv_ThisCall, NULL, pass, 3))
}

@@ -224,7 +224,7 @@ cell_t TF2_AddCondition(IPluginContext *pContext, const cell_t *params)
pass[0].type = PassType_Basic; \
pass[1].flags = PASSFLAG_BYVAL; \
pass[1].size = sizeof(float); \
pass[1].type = PassType_Basic; \
pass[1].type = PassType_Float; \
pass[2].flags = PASSFLAG_BYVAL; \
pass[2].size = sizeof(CBaseEntity *); \
pass[2].type = PassType_Basic; \
@@ -293,10 +293,10 @@ cell_t TF2_StunPlayer(IPluginContext *pContext, const cell_t *params)
PassInfo pass[4]; \
pass[0].flags = PASSFLAG_BYVAL; \
pass[0].size = sizeof(float); \
pass[0].type = PassType_Basic; \
pass[0].type = PassType_Float; \
pass[1].flags = PASSFLAG_BYVAL; \
pass[1].size = sizeof(float); \
pass[1].type = PassType_Basic; \
pass[1].type = PassType_Float; \
pass[2].flags = PASSFLAG_BYVAL; \
pass[2].size = sizeof(int); \
pass[2].type = PassType_Basic; \

0 comments on commit f9ce25a

Please sign in to comment.
You can’t perform that action at this time.