Skip to content

Commit f9ce25a

Browse files
TheDS1337psychonic
authored andcommitted
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
1 parent 7e41893 commit f9ce25a

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

extensions/cstrike/natives.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ static cell_t CS_TerminateRound(IPluginContext *pContext, const cell_t *params)
305305
REGISTER_NATIVE_ADDR("TerminateRound",
306306
PassInfo pass[2]; \
307307
pass[0].flags = PASSFLAG_BYVAL; \
308-
pass[0].type = PassType_Basic; \
308+
pass[0].type = PassType_Float; \
309309
pass[0].size = sizeof(float); \
310310
pass[1].flags = PASSFLAG_BYVAL; \
311311
pass[1].type = PassType_Basic; \
@@ -327,7 +327,7 @@ static cell_t CS_TerminateRound(IPluginContext *pContext, const cell_t *params)
327327
REGISTER_NATIVE_ADDR("TerminateRound",
328328
PassInfo pass[4]; \
329329
pass[0].flags = PASSFLAG_BYVAL; \
330-
pass[0].type = PassType_Basic; \
330+
pass[0].type = PassType_Float; \
331331
pass[0].size = sizeof(float); \
332332
pass[1].flags = PASSFLAG_BYVAL; \
333333
pass[1].type = PassType_Basic; \

extensions/sdktools/outputnatives.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ static cell_t FireEntityOutput(IPluginContext *pContext, const cell_t *params)
337337
pass[6].type = PassType_Basic;
338338
pass[6].size = sizeof(CBaseEntity *);
339339
pass[7].flags = PASSFLAG_BYVAL;
340-
pass[7].type = PassType_Basic;
340+
pass[7].type = PassType_Float;
341341
pass[7].size = sizeof(float);
342342
#else
343343
int iMaxParam = 4;
@@ -353,7 +353,7 @@ static cell_t FireEntityOutput(IPluginContext *pContext, const cell_t *params)
353353
pass[2].type = PassType_Basic;
354354
pass[2].size = sizeof(CBaseEntity *);
355355
pass[3].flags = PASSFLAG_BYVAL;
356-
pass[3].type = PassType_Basic;
356+
pass[3].type = PassType_Float;
357357
pass[3].size = sizeof(float);
358358
#endif
359359
if (!(g_pFireOutput = g_pBinTools->CreateCall(addr, CallConv_ThisCall, NULL, pass, iMaxParam)))

extensions/tf2/natives.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ cell_t TF2_MakeBleed(IPluginContext *pContext, const cell_t *params)
5555
pass[1].type = PassType_Basic; \
5656
pass[2].flags = PASSFLAG_BYVAL; \
5757
pass[2].size = sizeof(float); \
58-
pass[2].type = PassType_Basic; \
58+
pass[2].type = PassType_Float; \
5959
pass[3].flags = PASSFLAG_BYVAL; \
6060
pass[3].size = sizeof(int); \
6161
pass[3].type = PassType_Basic; \
@@ -110,7 +110,7 @@ cell_t TF2_Burn(IPluginContext *pContext, const cell_t *params)
110110
pass[1].type = PassType_Basic; \
111111
pass[2].flags = PASSFLAG_BYVAL; \
112112
pass[2].size = sizeof(float); \
113-
pass[2].type = PassType_Basic; \
113+
pass[2].type = PassType_Float; \
114114
pWrapper = g_pBinTools->CreateCall(addr, CallConv_ThisCall, NULL, pass, 3))
115115
}
116116

@@ -224,7 +224,7 @@ cell_t TF2_AddCondition(IPluginContext *pContext, const cell_t *params)
224224
pass[0].type = PassType_Basic; \
225225
pass[1].flags = PASSFLAG_BYVAL; \
226226
pass[1].size = sizeof(float); \
227-
pass[1].type = PassType_Basic; \
227+
pass[1].type = PassType_Float; \
228228
pass[2].flags = PASSFLAG_BYVAL; \
229229
pass[2].size = sizeof(CBaseEntity *); \
230230
pass[2].type = PassType_Basic; \
@@ -293,10 +293,10 @@ cell_t TF2_StunPlayer(IPluginContext *pContext, const cell_t *params)
293293
PassInfo pass[4]; \
294294
pass[0].flags = PASSFLAG_BYVAL; \
295295
pass[0].size = sizeof(float); \
296-
pass[0].type = PassType_Basic; \
296+
pass[0].type = PassType_Float; \
297297
pass[1].flags = PASSFLAG_BYVAL; \
298298
pass[1].size = sizeof(float); \
299-
pass[1].type = PassType_Basic; \
299+
pass[1].type = PassType_Float; \
300300
pass[2].flags = PASSFLAG_BYVAL; \
301301
pass[2].size = sizeof(int); \
302302
pass[2].type = PassType_Basic; \

0 commit comments

Comments
 (0)