qcvm won't print checksum or entity field area size without the -info option anymore

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-23 12:42:41 +02:00
parent 412446f42e
commit 52a1b9469c

4
exec.c
View file

@ -885,7 +885,10 @@ int main(int argc, char **argv)
prog->builtins_count = qc_builtins_count;
prog->builtins_alloc = 0;
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;