- Don't try to load QVM/DLL files on pure servers

- Fallback after failed DLL load will be VMI_COMPILED, not INTERPRETED
This commit is contained in:
Thilo Schulz 2011-06-15 22:25:13 +00:00
parent 9219cde4e8
commit af5020c57c
2 changed files with 3 additions and 2 deletions

View file

@ -1403,7 +1403,7 @@ vmInterpret_t FS_FindVM(void **startSearch, char *found, int foundlen, const cha
while(search)
{
if(search->dir)
if(search->dir && !fs_numServerPaks)
{
dir = search->dir;

View file

@ -622,7 +622,8 @@ vm_t *VM_Create( const char *module, intptr_t (*systemCalls)(intptr_t *),
interpret = VMI_BYTECODE;
}
#else
if ( interpret >= VMI_COMPILED ) {
if(interpret != VMI_BYTECODE)
{
vm->compiled = qtrue;
VM_Compile( vm, header );
}