r158 - trunk/code/qcommon
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Oct 14 13:09:03 EDT 2005
Author: tma
Date: 2005-10-14 13:09:03 -0400 (Fri, 14 Oct 2005)
New Revision: 158
Modified:
trunk/code/qcommon/vm.c
Log:
* Adjusted VM_LoadQVM interface
Modified: trunk/code/qcommon/vm.c
===================================================================
--- trunk/code/qcommon/vm.c 2005-10-13 23:08:45 UTC (rev 157)
+++ trunk/code/qcommon/vm.c 2005-10-14 17:09:03 UTC (rev 158)
@@ -356,11 +356,12 @@
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 @@
// 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 @@
#endif
// load the image
- if( !( header = VM_LoadQVM( vm, header, qtrue ) ) ) {
+ if( !( header = VM_LoadQVM( vm, qtrue ) ) ) {
return NULL;
}
More information about the quake3-commits
mailing list