summaryrefslogtreecommitdiff
path: root/src/client/cl_cgame.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/cl_cgame.c')
-rw-r--r--src/client/cl_cgame.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/client/cl_cgame.c b/src/client/cl_cgame.c
index 19fd54b9..00bddcd4 100644
--- a/src/client/cl_cgame.c
+++ b/src/client/cl_cgame.c
@@ -773,13 +773,14 @@ void CL_InitCGame( void ) {
Com_sprintf( cl.mapname, sizeof( cl.mapname ), "maps/%s.bsp", mapname );
// load the dll or bytecode
- if ( cl_connectedToPureServer != 0 ) {
+ interpret = Cvar_VariableValue("vm_cgame");
+ if(cl_connectedToPureServer)
+ {
// if sv_pure is set we only allow qvms to be loaded
- interpret = VMI_COMPILED;
- }
- else {
- interpret = Cvar_VariableValue( "vm_cgame" );
+ if(interpret != VMI_COMPILED && interpret != VMI_BYTECODE)
+ interpret = VMI_COMPILED;
}
+
cgvm = VM_Create( "cgame", CL_CgameSystemCalls, interpret );
if ( !cgvm ) {
Com_Error( ERR_DROP, "VM_Create on cgame failed" );