mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-12 23:07:55 +03:00
Set vscript integer param typemask to allow float
This commit is contained in:
parent
023512dcc3
commit
aac91b6487
@ -1091,7 +1091,8 @@ bool CreateParamCheck(const ScriptFunctionBinding_t& func, char* output)
|
||||
switch (func.m_desc.m_Parameters[i])
|
||||
{
|
||||
case FIELD_FLOAT:
|
||||
*output++ = 'n'; // NOTE: Can be int or float
|
||||
case FIELD_INTEGER:
|
||||
*output++ = 'n';
|
||||
break;
|
||||
case FIELD_CSTRING:
|
||||
*output++ = 's';
|
||||
@ -1099,9 +1100,6 @@ bool CreateParamCheck(const ScriptFunctionBinding_t& func, char* output)
|
||||
case FIELD_VECTOR:
|
||||
*output++ = 'x'; // Generic instance, we validate on arrival
|
||||
break;
|
||||
case FIELD_INTEGER:
|
||||
*output++ = 'i'; // could use 'n' also which is int or float
|
||||
break;
|
||||
case FIELD_BOOLEAN:
|
||||
*output++ = 'b';
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user