]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
qcvm won't print checksum or entity field area size without the -info option anymore
authorWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 23 Aug 2012 10:42:41 +0000 (12:42 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 23 Aug 2012 10:42:41 +0000 (12:42 +0200)
exec.c

diff --git a/exec.c b/exec.c
index e30e2fa6905727c4d5a7e2f724f072073ff6c80b..666468a3f3bfa33ff519c357331313f9e5791143 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -885,7 +885,10 @@ int main(int argc, char **argv)
     prog->builtins_count = qc_builtins_count;
     prog->builtins_alloc = 0;
 
-    printf("Program's system-checksum = 0x%04x\n", (int)prog->crc16);
+    if (opts_info) {
+        printf("Program's system-checksum = 0x%04x\n", (int)prog->crc16);
+        printf("Entity field space: %i\n", (int)prog->entityfields);
+    }
 
     for (i = 1; i < prog->functions_count; ++i) {
         const char *name = prog_getstring(prog, prog->functions[i].name);
@@ -893,7 +896,6 @@ int main(int argc, char **argv)
         if (!strcmp(name, "main"))
             fnmain = (qcint)i;
     }
-    printf("Entity field space: %i\n", (int)prog->entityfields);
     if (opts_info) {
         prog_delete(prog);
         return 0;