mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-12 06:48:04 +03:00
Update vector.inc
This commit is contained in:
parent
91cdccb90f
commit
a46088387c
@ -137,7 +137,7 @@ stock FVecIVec(const Float:FVec[3], IVec[3])
|
|||||||
*
|
*
|
||||||
* @return True if the vector is zero, false otherwise
|
* @return True if the vector is zero, false otherwise
|
||||||
*/
|
*/
|
||||||
stock bool:IsVectorZero(const any:Vector[3])
|
stock bool:IsVectorZero(const {_, Float}:Vector[3])
|
||||||
{
|
{
|
||||||
return Vector[0] == 0 && Vector[1] == 0 && Vector[2] == 0;
|
return Vector[0] == 0 && Vector[1] == 0 && Vector[2] == 0;
|
||||||
}
|
}
|
||||||
@ -149,7 +149,7 @@ stock bool:IsVectorZero(const any:Vector[3])
|
|||||||
*
|
*
|
||||||
* @noreturn
|
* @noreturn
|
||||||
*/
|
*/
|
||||||
stock SetVectorZero(any:Vector[3])
|
stock SetVectorZero({_, Float}:Vector[3])
|
||||||
{
|
{
|
||||||
Vector[0] = Vector[1] = Vector[2] = 0;
|
Vector[0] = Vector[1] = Vector[2] = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user