From: Wolfgang Bumiller Date: Thu, 20 Dec 2012 18:19:12 +0000 (+0100) Subject: since unary not doesn't fold these, remove them from immediate_is_true X-Git-Tag: 0.2~51 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=commitdiff_plain;h=34063108a6c75bc86b287b12664cdb3beeb5a97d since unary not doesn't fold these, remove them from immediate_is_true --- diff --git a/parser.c b/parser.c index 5113700..c788206 100644 --- a/parser.c +++ b/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;