entities.inc: Clarify EntIndexToEntRef / EntRefToEntIndex errors (#1370)

This commit is contained in:
Impact
2021-05-20 16:07:11 -07:00
committed by GitHub
parent 6b7fd8c3dc
commit 4a43ac1bdd
+3 -2
View File
@@ -649,7 +649,8 @@ stock void DisplayAskConnectBox(int client, float time, const char[] ip, const c
* Converts an entity index into a serial encoded entity reference.
*
* @param entity Entity index.
* @return Entity reference.
* @return Entity reference or -1 on invalid entity.
* @error Entity index >= GetMaxEntities() or < 0
*/
native int EntIndexToEntRef(int entity);
@@ -657,7 +658,7 @@ native int EntIndexToEntRef(int entity);
* Retrieves the entity index from a reference.
*
* @param ref Entity reference.
* @return Entity index.
* @return Entity index or -1 on invalid reference.
*/
native int EntRefToEntIndex(int ref);