diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-10-14 17:09:03 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-10-14 17:09:03 +0000 |
commit | 2b16a3c9f06f8a3d4d00c1c3631ba23f331fddac (patch) | |
tree | f36624a674b8ad2224cc549e890a6a36c95d1a62 /code/qcommon | |
parent | 1140a6ef3671d1a4ae8b0d224870f5cc55cc97f6 (diff) | |
download | ioquake3-aero-2b16a3c9f06f8a3d4d00c1c3631ba23f331fddac.tar.gz ioquake3-aero-2b16a3c9f06f8a3d4d00c1c3631ba23f331fddac.zip |
* Adjusted VM_LoadQVM interface
git-svn-id: svn://svn.icculus.org/quake3/trunk@158 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/qcommon')
-rw-r--r-- | code/qcommon/vm.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/code/qcommon/vm.c b/code/qcommon/vm.c index a319c12..fc795cd 100644 --- a/code/qcommon/vm.c +++ b/code/qcommon/vm.c @@ -356,11 +356,12 @@ VM_LoadQVM Load a .qvm file ================= */ -vmHeader_t *VM_LoadQVM( vm_t *vm, vmHeader_t *header, qboolean alloc ) { - int length; - int dataLength; - int i; - char filename[MAX_QPATH]; +vmHeader_t *VM_LoadQVM( vm_t *vm, qboolean alloc ) { + int length; + int dataLength; + int i; + char filename[MAX_QPATH]; + vmHeader_t *header; // load the image Com_sprintf( filename, sizeof(filename), "vm/%s.qvm", vm->name ); @@ -475,7 +476,7 @@ vm_t *VM_Restart( vm_t *vm ) { // load the image Com_Printf( "VM_Restart()\n" ); - if( !( header = VM_LoadQVM( vm, header, qfalse ) ) ) { + if( !( header = VM_LoadQVM( vm, qfalse ) ) ) { Com_Error( ERR_DROP, "VM_Restart failed.\n" ); return NULL; } @@ -560,7 +561,7 @@ vm_t *VM_Create( const char *module, long (*systemCalls)(long *), #endif // load the image - if( !( header = VM_LoadQVM( vm, header, qtrue ) ) ) { + if( !( header = VM_LoadQVM( vm, qtrue ) ) ) { return NULL; } |