From 53b1c6c01ad43b71e7aead191b4a1751d428287d Mon Sep 17 00:00:00 2001 From: ludwig Date: Sun, 9 Oct 2005 13:05:44 +0000 Subject: don't call VM_Compile if it's not supported so the VM_Compile symbol isn't needed git-svn-id: svn://svn.icculus.org/quake3/trunk@150 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/qcommon/vm.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'code/qcommon') diff --git a/code/qcommon/vm.c b/code/qcommon/vm.c index d5bb3aa..080599d 100644 --- a/code/qcommon/vm.c +++ b/code/qcommon/vm.c @@ -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"); interpret = VMI_BYTECODE; } -#endif - +#else if ( interpret >= VMI_COMPILED ) { vm->compiled = qtrue; VM_Compile( vm, header ); - } else { + } else +#endif + { vm->compiled = qfalse; VM_PrepareInterpreter( vm, header ); } -- cgit v1.2.3