Allow interpreted VM on pure servers
This commit is contained in:
1 parent
7eba074ce4
commit
b93a88455a
2 files changed
+12
-10
No files matched your search
+6
-5
@@ -1098,13 +1098,14 @@ void CL_InitUI( void ) {
|
||||
vmInterpret_t interpret;
|
||||
|
||||
// load the dll or bytecode
|
||||
if ( cl_connectedToPureServer != 0 ) {
|
||||
interpret = Cvar_VariableValue("vm_ui");
|
||||
if(cl_connectedToPureServer)
|
||||
{
|
||||
// if sv_pure is set we only allow qvms to be loaded
|
||||
interpret = VMI_COMPILED;
|
||||
}
|
||||
else {
|
||||
interpret = Cvar_VariableValue( "vm_ui" );
|
||||
if(interpret != VMI_COMPILED && interpret != VMI_BYTECODE)
|
||||
interpret = VMI_COMPILED;
|
||||
}
|
||||
|
||||
uivm = VM_Create( "ui", CL_UISystemCalls, interpret );
|
||||
if ( !uivm ) {
|
||||
Com_Error( ERR_FATAL, "VM_Create on UI failed" );
|
||||
|
||||
Reference in new issue
Block a user