mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-22 10:41:43 +00:00
since unary not doesn't fold these, remove them from immediate_is_true
This commit is contained in:
parent
4319922b3c
commit
34063108a6
1 changed files with 0 additions and 4 deletions
4
parser.c
4
parser.c
|
@ -488,10 +488,6 @@ static bool immediate_is_true(lex_ctx ctx, ast_value *v)
|
|||
if (v->constval.vstring && OPTS_FLAG(TRUE_EMPTY_STRINGS))
|
||||
return true;
|
||||
return !!v->constval.vstring[0];
|
||||
case TYPE_ENTITY:
|
||||
return !!v->constval.ventity;
|
||||
case TYPE_FIELD:
|
||||
return !!v->constval.vfield;
|
||||
default:
|
||||
compile_error(ctx, "internal error: immediate_is_true on invalid type");
|
||||
return !!v->constval.vfunc;
|
||||
|
|
Loading…
Reference in a new issue