mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2024-11-10 15:21:51 +00:00
remove some redundant logic
This commit is contained in:
parent
0f2b390348
commit
cbe175461b
1 changed files with 2 additions and 2 deletions
4
tfort.qc
4
tfort.qc
|
@ -158,12 +158,12 @@ void() TeamFortress_ChangeClass =
|
||||||
local string scratch;
|
local string scratch;
|
||||||
|
|
||||||
//WK - Handle Custom Class Restarting
|
//WK - Handle Custom Class Restarting
|
||||||
if (self.playerclass == PC_CUSTOM && self.done_custom & CUSTOM_BUILDING) {
|
if (self.playerclass == PC_CUSTOM && (self.done_custom & CUSTOM_BUILDING)) {
|
||||||
DropToCustomClassGen(); //Comatose state
|
DropToCustomClassGen(); //Comatose state
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (self.playerclass != PC_UNDEFINED && !(self.playerclass == PC_CUSTOM && (self.done_custom & CUSTOM_BUILDING)))
|
if (self.playerclass != PC_UNDEFINED)
|
||||||
{
|
{
|
||||||
// In Deathmatch 3, you can change class after you die
|
// In Deathmatch 3, you can change class after you die
|
||||||
if (deathmatch != 3)
|
if (deathmatch != 3)
|
||||||
|
|
Loading…
Reference in a new issue