General: Hande another case, and change some stuff.

Forgot to change these when i copied it, and didnt think about the case
what would happen w/e zspawn is blocked.
This commit is contained in:
zaCade 2018-08-29 16:21:27 +02:00
parent c32cda3fc9
commit c8f7964a0c

View File

@ -26,13 +26,13 @@
*/
/**
* Conditions for respawning players.
* Conditions for zspawning players.
*/
enum ZSpawnCondition
{
ZSpawn_Block = -1, /** Let ZR decide according to its settings. */
ZSpawn_Human = 0, /** Respawn as a human. */
ZSpawn_Zombie /** Respawn as a zombie. */
ZSpawn_Block = -1, /** Block ZSpawn. */
ZSpawn_Human = 0, /** ZSpawn as a human. */
ZSpawn_Zombie /** ZSpawn as a zombie. */
}
/**
@ -130,7 +130,7 @@ ZSpawnOnClientSpawn(client)
switch(condition)
{
case ZSpawn_Human:
case ZSpawn_Human, ZSpawn_Block:
{
// Disable zombie flag on client.
g_bZombie[client] = false;