Fixed the display bug in ZTele showing 0/X uses instead of 1/X.

This commit is contained in:
Greyscale 2009-12-31 00:33:50 -08:00
parent 114552f451
commit d88b824bfd

View File

@ -214,12 +214,12 @@ bool:ZTeleClient(client, bool:force = false)
// Teleport client to spawn. // Teleport client to spawn.
ZTeleTeleportClient(client); ZTeleTeleportClient(client);
// Increment teleport count.
g_iZTeleCount[client]++;
// If we're forcing the ZTele, then don't increment the count or print how many teleports they have used. // If we're forcing the ZTele, then don't increment the count or print how many teleports they have used.
// Tell client they've been teleported. // Tell client they've been teleported.
TranslationPrintCenterText(client, "ZTele countdown end", g_iZTeleCount[client], ztelemax); TranslationPrintCenterText(client, "ZTele countdown end", g_iZTeleCount[client], ztelemax);
// Increment teleport count.
g_iZTeleCount[client]++;
} }
return true; return true;