[quake3-commits] r2192 - trunk/code/qcommon
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Oct 28 15:43:43 EDT 2011
Author: ztm
Date: 2011-10-28 15:43:43 -0400 (Fri, 28 Oct 2011)
New Revision: 2192
Modified:
trunk/code/qcommon/vm.c
Log:
Fixed showing number of qvm jump table targets (r2180 caused it to show 0 on alloc).
Modified: trunk/code/qcommon/vm.c
===================================================================
--- trunk/code/qcommon/vm.c 2011-10-28 19:12:43 UTC (rev 2191)
+++ trunk/code/qcommon/vm.c 2011-10-28 19:43:43 UTC (rev 2192)
@@ -481,18 +481,20 @@
if(header.h->vmMagic == VM_MAGIC_VER2)
{
- Com_Printf("Loading %d jump table targets\n", vm->numJumpTableTargets);
+ int previousNumJumpTableTargets = vm->numJumpTableTargets;
header.h->jtrgLength &= ~0x03;
+ vm->numJumpTableTargets = header.h->jtrgLength >> 2;
+ Com_Printf("Loading %d jump table targets\n", vm->numJumpTableTargets);
+
if(alloc)
{
vm->jumpTableTargets = Hunk_Alloc(header.h->jtrgLength, h_high);
- vm->numJumpTableTargets = header.h->jtrgLength >> 2;
}
else
{
- if((header.h->jtrgLength >> 2) != vm->numJumpTableTargets)
+ if(vm->numJumpTableTargets != previousNumJumpTableTargets)
{
VM_Free(vm);
FS_FreeFile(header.v);
More information about the quake3-commits
mailing list