From 9d8dac5671508eae0c178eeddba15fc78635cb09 Mon Sep 17 00:00:00 2001 From: Hattrick HttrckCldHKS Date: Tue, 4 Sep 2018 23:32:57 +0300 Subject: [PATCH] Update vector.inc --- plugins/include/vector.inc | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/plugins/include/vector.inc b/plugins/include/vector.inc index 8cd6db62..9339c3d3 100644 --- a/plugins/include/vector.inc +++ b/plugins/include/vector.inc @@ -137,23 +137,11 @@ stock FVecIVec(const Float:FVec[3], IVec[3]) * * @return True if the vector is zero, false otherwise */ -stock bool:is_vector_zero(const Vector[3]) +stock bool:IsVectorZero(const any:Vector[3]) { return (Vector[0] == 0 && Vector[1] == 0 && Vector[2] == 0) ? true : false; } -/** - * Checks if a float vector is zero. - * - * @param Vector The input float vector - * - * @return True if the float vector is zero, false otherwise - */ -stock bool:is_vector_zero_f(const Float:Vector[3]) -{ - return (Vector[0] == 0.0 && Vector[1] == 0.0 && Vector[2] == 0.0) ? true : false; -} - /** * Sets a vector to zero. * @@ -161,19 +149,7 @@ stock bool:is_vector_zero_f(const Float:Vector[3]) * * @noreturn */ -stock set_vector_zero(Vector[3]) +stock SetVectorZero(any:Vector[3]) { Vector[0] = Vector[1] = Vector[2] = 0; } - -/** - * Sets a float vector to zero. - * - * @param Vector Float vector - * - * @noreturn - */ -stock set_vector_zero_f(Float:Vector[3]) -{ - Vector[0] = Vector[1] = Vector[2] = 0.0; -}