Replace INVALID_HANDLE with null in ztele module.

This commit is contained in:
Richard Helgeby 2015-03-29 16:01:29 +02:00
parent f4a2f151af
commit 345fb1f7f7

View File

@ -380,7 +380,7 @@ public Action ZTeleTimer(Handle timer, int client)
if (!IsClientInGame(client)) if (!IsClientInGame(client))
{ {
// Client has left the game. // Client has left the game.
tZTele[client] = INVALID_HANDLE; tZTele[client] = null;
return Plugin_Stop; return Plugin_Stop;
} }
@ -392,7 +392,7 @@ public Action ZTeleTimer(Handle timer, int client)
TranslationPrintCenterText(client, "ZTele autocancel centertext"); TranslationPrintCenterText(client, "ZTele autocancel centertext");
TranslationPrintToChat(client, "ZTele autocancel text", maxDistanceInFeet); TranslationPrintToChat(client, "ZTele autocancel text", maxDistanceInFeet);
tZTele[client] = INVALID_HANDLE; tZTele[client] = null;
return Plugin_Stop; return Plugin_Stop;
} }
@ -418,7 +418,7 @@ public Action ZTeleTimer(Handle timer, int client)
TranslationPrintCenterText(client, "ZTele countdown end", g_iZTeleCount[client], ztelemax); TranslationPrintCenterText(client, "ZTele countdown end", g_iZTeleCount[client], ztelemax);
// Clear timer handle. // Clear timer handle.
tZTele[client] = INVALID_HANDLE; tZTele[client] = null;
// Stop timer. // Stop timer.
return Plugin_Stop; return Plugin_Stop;
@ -430,7 +430,7 @@ public Action ZTeleTimer(Handle timer, int client)
bool ZTeleClientInProgress(int client) bool ZTeleClientInProgress(int client)
{ {
return tZTele[client] != INVALID_HANDLE; return tZTele[client] != null;
} }
void ZTeleStopTimer(int client) void ZTeleStopTimer(int client)
@ -439,7 +439,7 @@ void ZTeleStopTimer(int client)
{ {
KillTimer(tZTele[client]); KillTimer(tZTele[client]);
} }
tZTele[client] = INVALID_HANDLE; tZTele[client] = null;
} }
bool ZTeleMustBeHuman(int client) bool ZTeleMustBeHuman(int client)