From 7f73e77d088f69ae1948cdc2f0f45384db9a6b2a Mon Sep 17 00:00:00 2001 From: Greyscale Date: Wed, 8 Jul 2009 23:22:53 -0700 Subject: [PATCH] Fixed a small bug in ZSpawn where if you connect, and then click cancel it thinks you have already played in the game. --- src/zr/zombiereloaded.inc | 1 + src/zr/zspawn.inc | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/src/zr/zombiereloaded.inc b/src/zr/zombiereloaded.inc index 3424769..4dbb895 100644 --- a/src/zr/zombiereloaded.inc +++ b/src/zr/zombiereloaded.inc @@ -248,6 +248,7 @@ stock bool:ZRIsClientAdmin(client, AdminFlag:flag = Admin_Generic) { return false; } + // If client doesn't have the Admin_Generic flag, then stop. if (!GetAdminFlag(GetUserAdmin(client), flag)) { diff --git a/src/zr/zspawn.inc b/src/zr/zspawn.inc index f9a77c7..6982484 100644 --- a/src/zr/zspawn.inc +++ b/src/zr/zspawn.inc @@ -72,6 +72,12 @@ ZSpawnOnMapStart() */ ZSpawnOnClientDisconnect(client) { + // So people who are connecting that click "cancel" aren't added to the list. + if (!IsClientInGame(client)) + { + return; + } + // Check if client is a bot. if (IsFakeClient(client)) {