don't call VM_Compile if it's not supported so the VM_Compile symbol

isn't needed
This commit is contained in:
Ludwig Nussel 2005-10-09 13:05:44 +00:00
parent f6cb6eee96
commit f62601ac53

View file

@ -558,12 +558,13 @@ vm_t *VM_Create( const char *module, long (*systemCalls)(long *),
Com_Printf("Architecture doesn't have a bytecode compiler, using interpreter\n"); Com_Printf("Architecture doesn't have a bytecode compiler, using interpreter\n");
interpret = VMI_BYTECODE; interpret = VMI_BYTECODE;
} }
#endif #else
if ( interpret >= VMI_COMPILED ) { if ( interpret >= VMI_COMPILED ) {
vm->compiled = qtrue; vm->compiled = qtrue;
VM_Compile( vm, header ); VM_Compile( vm, header );
} else { } else
#endif
{
vm->compiled = qfalse; vm->compiled = qfalse;
VM_PrepareInterpreter( vm, header ); VM_PrepareInterpreter( vm, header );
} }