From 648b62527b8757205a8bdd497a17ec34cd01ed6b Mon Sep 17 00:00:00 2001 From: Richard Helgeby Date: Thu, 3 Jun 2010 21:12:28 +0200 Subject: [PATCH] Imported fix from dev: 717:fe907635426c - Fixed classes not always restored from cookies. --- src/zr/playerclasses/playerclasses.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/zr/playerclasses/playerclasses.inc b/src/zr/playerclasses/playerclasses.inc index 66edea6..ada7748 100644 --- a/src/zr/playerclasses/playerclasses.inc +++ b/src/zr/playerclasses/playerclasses.inc @@ -1026,7 +1026,7 @@ ClassClientSetDefaultIndexes(client = -1) // If not, fall back to default class indexes. Otherwise substract // index by one. if (zombieindex <= 0 || - !(ClassGetTeamID(zombieindex - 1) == ZR_CLASS_TEAM_ZOMBIES) || + !ClassTeamCompare(zombieindex - 1, ZR_CLASS_TEAM_ZOMBIES) || !ClassFilterMatch(zombieindex - 1, filter)) { zombieindex = ClassGetDefaultSpawnClass(ZR_CLASS_TEAM_ZOMBIES, filter); @@ -1038,7 +1038,7 @@ ClassClientSetDefaultIndexes(client = -1) } if (humanindex <= 0 || - !(ClassGetTeamID(humanindex - 1) == ZR_CLASS_TEAM_HUMANS) || + !ClassTeamCompare(humanindex - 1, ZR_CLASS_TEAM_HUMANS) || !ClassFilterMatch(humanindex - 1, filter)) { humanindex = ClassGetDefaultSpawnClass(ZR_CLASS_TEAM_HUMANS, filter); @@ -1050,7 +1050,7 @@ ClassClientSetDefaultIndexes(client = -1) } if (adminindex <= 0 || - !(ClassGetTeamID(adminindex - 1) == ZR_CLASS_TEAM_ADMINS) || + !ClassTeamCompare(adminindex - 1, ZR_CLASS_TEAM_ADMINS) || !ClassFilterMatch(adminindex - 1, filter)) { adminindex = ClassGetDefaultSpawnClass(ZR_CLASS_TEAM_ADMINS, filter);