From 2a9deb6a64799740617751a71fb30a592594d296 Mon Sep 17 00:00:00 2001 From: Einyux <55111351+Einyux@users.noreply.github.com> Date: Wed, 13 Nov 2019 09:33:00 +0100 Subject: [PATCH] Add missing const to origin parameters (#1079) --- plugins/include/halflife.inc | 2 +- plugins/include/sdktools_tempents.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/include/halflife.inc b/plugins/include/halflife.inc index a6b35702..a7790cc8 100644 --- a/plugins/include/halflife.inc +++ b/plugins/include/halflife.inc @@ -682,7 +682,7 @@ enum ClientRangeType * @param size Maximum size of clients array. * @return Number of client indexes written to clients array. */ -native int GetClientsInRange(float origin[3], ClientRangeType rangeType, int[] clients, int size); +native int GetClientsInRange(const float origin[3], ClientRangeType rangeType, int[] clients, int size); /** * Retrieves the server's authentication string (SteamID). diff --git a/plugins/include/sdktools_tempents.inc b/plugins/include/sdktools_tempents.inc index e7724ec1..510d90d6 100644 --- a/plugins/include/sdktools_tempents.inc +++ b/plugins/include/sdktools_tempents.inc @@ -224,7 +224,7 @@ stock void TE_SendToClient(int client, float delay=0.0) * @param rangeType Range type to use for filtering clients. * @param delay Delay in seconds to send the TE. */ -stock void TE_SendToAllInRange(float origin[3], ClientRangeType rangeType, float delay=0.0) +stock void TE_SendToAllInRange(const float origin[3], ClientRangeType rangeType, float delay=0.0) { int[] clients = new int[MaxClients]; int total = GetClientsInRange(origin, rangeType, clients, MaxClients);