removed core bcompat shims where possible
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401942
This commit is contained in:
parent
3788c61cb9
commit
074883512a
@ -308,6 +308,5 @@ REGISTER_NATIVES(floatnatives)
|
|||||||
{"ArcCosine", sm_ArcCosine},
|
{"ArcCosine", sm_ArcCosine},
|
||||||
{"ArcSine", sm_ArcSine},
|
{"ArcSine", sm_ArcSine},
|
||||||
{"ArcTangent2", sm_ArcTangent2},
|
{"ArcTangent2", sm_ArcTangent2},
|
||||||
{"FloatRound", sm_FloatRound}, /* Backwards compat shim */
|
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
@ -1123,9 +1123,7 @@ REGISTER_NATIVES(keyvaluenatives)
|
|||||||
{"KvJumpToKey", smn_KvJumpToKey},
|
{"KvJumpToKey", smn_KvJumpToKey},
|
||||||
{"KvJumpToKeySymbol", smn_KvJumpToKeySymbol},
|
{"KvJumpToKeySymbol", smn_KvJumpToKeySymbol},
|
||||||
{"KvGotoNextKey", smn_KvGotoNextKey},
|
{"KvGotoNextKey", smn_KvGotoNextKey},
|
||||||
{"KvJumpFirstSubKey", smn_KvGotoFirstSubKey}, /* BACKWARDS COMPAT SHIM */
|
|
||||||
{"KvGotoFirstSubKey", smn_KvGotoFirstSubKey},
|
{"KvGotoFirstSubKey", smn_KvGotoFirstSubKey},
|
||||||
{"KvJumpNextSubKey", smn_KvJumpNextSubKey}, /* BACKWARDS COMPAT SHIM */
|
|
||||||
{"KvGoBack", smn_KvGoBack},
|
{"KvGoBack", smn_KvGoBack},
|
||||||
{"KvRewind", smn_KvRewind},
|
{"KvRewind", smn_KvRewind},
|
||||||
{"KvGetSectionName", smn_KvGetSectionName},
|
{"KvGetSectionName", smn_KvGetSectionName},
|
||||||
|
@ -1347,7 +1347,6 @@ REGISTER_NATIVES(playernatives)
|
|||||||
{"IsClientAuthorized", sm_IsClientAuthorized},
|
{"IsClientAuthorized", sm_IsClientAuthorized},
|
||||||
{"IsClientConnected", sm_IsClientConnected},
|
{"IsClientConnected", sm_IsClientConnected},
|
||||||
{"IsFakeClient", sm_IsClientFakeClient},
|
{"IsFakeClient", sm_IsClientFakeClient},
|
||||||
{"IsPlayerInGame", sm_IsClientInGame}, /* Backwards compat shim */
|
|
||||||
{"IsClientInGame", sm_IsClientInGame},
|
{"IsClientInGame", sm_IsClientInGame},
|
||||||
{"IsClientObserver", IsClientObserver},
|
{"IsClientObserver", IsClientObserver},
|
||||||
{"RemoveUserFlags", RemoveUserFlags},
|
{"RemoveUserFlags", RemoveUserFlags},
|
||||||
|
@ -578,13 +578,10 @@ REGISTER_NATIVES(basicStrings)
|
|||||||
{"ReplaceStringEx", ReplaceStringEx},
|
{"ReplaceStringEx", ReplaceStringEx},
|
||||||
{"SplitString", SplitString},
|
{"SplitString", SplitString},
|
||||||
{"strlen", sm_strlen},
|
{"strlen", sm_strlen},
|
||||||
{"StrBreak", BreakString}, /* Backwards compat shim */
|
|
||||||
{"StrContains", sm_contain},
|
{"StrContains", sm_contain},
|
||||||
{"strcmp", sm_strcmp},
|
{"strcmp", sm_strcmp},
|
||||||
{"StrCompare", sm_strcmp}, /* Backwards compat shim */
|
|
||||||
{"strncmp", sm_strncmp},
|
{"strncmp", sm_strncmp},
|
||||||
{"strcopy", sm_strcopy},
|
{"strcopy", sm_strcopy},
|
||||||
{"StrCopy", sm_strcopy}, /* Backwards compat shim */
|
|
||||||
{"StringToInt", sm_strconvint},
|
{"StringToInt", sm_strconvint},
|
||||||
{"StringToIntEx", StringToIntEx},
|
{"StringToIntEx", StringToIntEx},
|
||||||
{"StringToFloat", sm_strtofloat},
|
{"StringToFloat", sm_strtofloat},
|
||||||
|
@ -240,17 +240,6 @@ stock RoundFloat(Float:value)
|
|||||||
return RoundToNearest(value);
|
return RoundToNearest(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Backwards compatibility stock. Do not use.
|
|
||||||
*
|
|
||||||
* @deprecated
|
|
||||||
*/
|
|
||||||
#pragma deprecated Use RoundToNearest() or RoundFloat() instead
|
|
||||||
stock FloatRound(Float:value)
|
|
||||||
{
|
|
||||||
return RoundToNearest(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* User defined operators.
|
* User defined operators.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user