diff options
author | Thilo Schulz <arny@ats.s.bawue.de> | 2011-09-27 22:56:10 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-10 23:38:29 +0000 |
commit | e606de9a3f0fba1159da671a9c0095b0defc0d35 (patch) | |
tree | d6c57cd8a2ff9565e75a63aef858841e0a68e952 /src/client/cl_ui.c | |
parent | 8f53d0826c3bc1742fd37db56c9f3499d3060a9a (diff) |
Allow interpreted VM on pure servers
Diffstat (limited to 'src/client/cl_ui.c')
-rw-r--r-- | src/client/cl_ui.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/client/cl_ui.c b/src/client/cl_ui.c index 88e0e6d1..35b8bbb6 100644 --- a/src/client/cl_ui.c +++ b/src/client/cl_ui.c @@ -1085,13 +1085,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_Printf( "Failed to find a valid UI vm. The following paths were searched:\n" ); |