diff options
author | ludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-10-09 13:05:44 +0000 |
---|---|---|
committer | ludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-10-09 13:05:44 +0000 |
commit | 53b1c6c01ad43b71e7aead191b4a1751d428287d (patch) | |
tree | 619f2ea65783bcd76990f3e3e2e3f5757793a071 /code | |
parent | e77331a64ef2c7260d3caadb3168cd836bd6a68c (diff) | |
download | ioquake3-aero-53b1c6c01ad43b71e7aead191b4a1751d428287d.tar.gz ioquake3-aero-53b1c6c01ad43b71e7aead191b4a1751d428287d.zip |
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
Diffstat (limited to 'code')
-rw-r--r-- | code/qcommon/vm.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 ); } |