Fixed players not respawning as zombies when they are supposed to. Updated patch list and changelog.

This commit is contained in:
Richard Helgeby 2010-11-17 15:48:57 +01:00
parent ef25b2f726
commit f878dd5735
3 changed files with 11 additions and 5 deletions

View File

@ -172,3 +172,8 @@ released. If the file is empty there are no config changes in that patch.
ZR_GetKilledByWorld
See addons/sourcemod/scripting/include/zr in the package for details.
Also see addons/sourcemod/scripting/testsuite/zr for API usage examples.
2010.11.17 - r648
-------------------
* Fixed players not respawning as zombies when they are supposed to.

View File

@ -13,3 +13,4 @@
643
644
647
648

View File

@ -243,14 +243,14 @@ public Action:RespawnTimer(Handle:timer, any:client)
*/
RespawnCondition:RespawnToContition(bool:zombie, bool:zombieIfSuicide)
{
if (zombieIfSuicide)
{
return Respawn_ZombieIfSuicide;
}
else if (zombie)
if (zombie)
{
return Respawn_Zombie;
}
else if (zombieIfSuicide)
{
return Respawn_ZombieIfSuicide;
}
return Respawn_Human;
}