Update vector.inc

This commit is contained in:
Hattrick HttrckCldHKS 2018-09-05 02:29:43 +03:00 committed by GitHub
parent 91cdccb90f
commit a46088387c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
} }