Skip to content

Commit

Permalink
Add missing const to origin parameters (#1079)
Browse files Browse the repository at this point in the history
  • Loading branch information
einyux authored and Headline committed Nov 13, 2019
1 parent 351e406 commit 2a9deb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/include/halflife.inc
Expand Up @@ -682,7 +682,7 @@ enum ClientRangeType
* @param size Maximum size of clients array. * @param size Maximum size of clients array.
* @return Number of client indexes written to 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). * Retrieves the server's authentication string (SteamID).
Expand Down
2 changes: 1 addition & 1 deletion plugins/include/sdktools_tempents.inc
Expand Up @@ -224,7 +224,7 @@ stock void TE_SendToClient(int client, float delay=0.0)
* @param rangeType Range type to use for filtering clients. * @param rangeType Range type to use for filtering clients.
* @param delay Delay in seconds to send the TE. * @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[] clients = new int[MaxClients];
int total = GetClientsInRange(origin, rangeType, clients, MaxClients); int total = GetClientsInRange(origin, rangeType, clients, MaxClients);
Expand Down

0 comments on commit 2a9deb6

Please sign in to comment.