From 7897d1d13bc32694316a8c0eb6eec8069263c42d Mon Sep 17 00:00:00 2001 From: "Tony J. White" Date: Mon, 13 Nov 2006 15:11:17 +0000 Subject: * (bug 2881) client could add themselves to the spawn queue multiple times when on aliens by running class command multiple times (Martin Doucha) --- src/game/g_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 2f9618fc..56446139 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -1526,7 +1526,7 @@ void Cmd_Class_f( gentity_t *ent ) } //if we are not currently spectating, we are attempting evolution - if( currentClass != PCL_NONE ) + if( ent->client->pers.classSelection != PCL_NONE ) { if( ( ent->client->ps.stats[ STAT_STATE ] & SS_WALLCLIMBING ) || ( ent->client->ps.stats[ STAT_STATE ] & SS_WALLCLIMBINGCEILING ) ) -- cgit