]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
since unary not doesn't fold these, remove them from immediate_is_true
authorWolfgang Bumiller <blub@speed.at>
Thu, 20 Dec 2012 18:19:12 +0000 (19:19 +0100)
committerWolfgang Bumiller <blub@speed.at>
Thu, 20 Dec 2012 18:19:12 +0000 (19:19 +0100)
parser.c

index 511370070a8118400e4ab6e1f102b7e5966f1f8d..c78820608d6c32c0b720662e67c340a7281c27d0 100644 (file)
--- 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;