Back to the Korax Forum Archives
RambOrc
dj_jl
Firebrand
dj_jl
Firebrand
dj_jl
Camper
dj_jl
Camper
0x2000000 (32.000000 meg) allocated for zone, ZoneBase: 0x51E3000 - Host_Init STACK TRACE: stack 0 0xc100 frame 0 0xf0080d00 stack 1 0xa9abc frame 1 0xf0080d60 stack 2 0x92882f34 frame 2 0xf0080db0 stack 3 0x9002c3b4 frame 3 0xf0080e00 stack 4 0x0 frame 4 0xf0080e50And the Apple Bug Tool reported the following:
Date/Time: 2005-10-24 22:12:14.102 +0200 OS Version: 10.4.2 (Build 8C46) Report Version: 3 Command: Vavoom Path: ./Vavoom Parent: bash [2524] Version: ??? (???) PID: 3552 Thread: 1 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000008 Thread 0: 0 libSystem.B.dylib 0x90042ae8 mach_wait_until + 8 1 libSystem.B.dylib 0x900428a0 nanosleep + 384 2 libSystem.B.dylib 0x9004677c usleep + 60 3 Vavoom 0x000a9990 -[AllegroAppDelegate applicationDidFinishLaunching:] + 700 (gl_tex.cpp:751) 4 com.apple.Foundation 0x92882878 _nsnote_callback + 180 5 com.apple.CoreFoundation 0x907726a0 __CFXNotificationPost + 368 6 com.apple.CoreFoundation 0x9076a7c4 _CFXNotificationPostNotification + 684 7 com.apple.Foundation 0x9286cc80 -[NSNotificationCenter postNotificationName:object:userInfo:] + 92 8 com.apple.AppKit 0x936342c0 -[NSApplication _postDidFinishNotification] + 112 9 com.apple.AppKit 0x936341ac -[NSApplication _sendFinishLaunchingNotification] + 92 10 com.apple.AppKit 0x93633cf4 -[NSApplication(NSAppleEventHandling) _handleAEOpen:] + 264 11 com.apple.AppKit 0x9363389c -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 92 12 com.apple.Foundation 0x92883884 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 380 13 com.apple.Foundation 0x928836e4 _NSAppleEventManagerGenericHandler + 92 14 com.apple.AE 0x91451a40 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*) + 208 15 com.apple.AE 0x914518dc dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 44 16 com.apple.AE 0x91451734 aeProcessAppleEvent + 284 17 com.apple.HIToolbox 0x9312c204 AEProcessAppleEvent + 60 18 com.apple.AppKit 0x93631fe4 _DPSNextEvent + 800 19 com.apple.AppKit 0x93631b08 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 116 20 com.apple.AppKit 0x9362e06c -[NSApplication run] + 472 21 Vavoom 0x000a9dec main + 756 (gl_tex.cpp:751) 22 Vavoom 0x00002bfc _start + 344 (crt.c:272) 23 Vavoom 0x00002aa0 start + 60 Thread 1 Crashed: 0 Vavoom 0x00008918 stack_trace() + 776 (sys_lin.cpp:573) 1 Vavoom 0x0000c100 mangled_main(int, char**) + 192 (sys_lin.cpp:821) 2 Vavoom 0x000a9abc +[AllegroAppDelegate app_main:] + 100 (gl_tex.cpp:751) 3 com.apple.Foundation 0x92882f34 forkThreadForFunction + 108 4 libSystem.B.dylib 0x9002c3b4 _pthread_body + 96 Thread 1 crashed with PPC Thread State 64: srr0: 0x0000000000008918 srr1: 0x000000000200f030 vrsave: 0x0000000000000000 cr: 0x24000248 xer: 0x0000000000000000 lr: 0x00000000000088b0 ctr: 0x0000000090001510 r0: 0x00000000f0080f00 r1: 0x00000000f0080d00 r2: 0x0000000000000000 r3: 0x0000000000000000 r4: 0x0000000000000000 r5: 0x0000000000000024 r6: 0x00000000ffffffff r7: 0x0000000000000024 r8: 0x0000000000000488 r9: 0x00000000f0080d60 r10: 0x00000000000cdbda r11: 0x00000000a0006444 r12: 0x0000000090001510 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000 r16: 0x0000000000000000 r17: 0x0000000000000000 r18: 0x0000000000000000 r19: 0x0000000000000000 r20: 0x0000000000000000 r21: 0x0000000000000000 r22: 0x0000000000000000 r23: 0x0000000000000000 r24: 0x0000000000000000 r25: 0x0000000000000000 r26: 0x0000000000000000 r27: 0x0000000000000000 r28: 0x0000000000000000 r29: 0x0000000002826a50 r30: 0x0000000002825200 r31: 0x0000000000008624 Binary Images Description: 0x1000 - 0xeefff Vavoom /Users/lb/Desktop/v118_win/Vavoom 0x605000 - 0x63afff libpng.3.dylib /opt/local/lib/libpng.3.dylib 0x30000000 - 0x300cdfff liballeg-4.1.15.dylib /opt/local/lib/liballeg-4.1.15.dylib 0x8fe00000 - 0x8fe51fff dyld 43.1 /usr/lib/dyld 0x90000000 - 0x901a6fff libSystem.B.dylib /usr/lib/libSystem.B.dylib 0x901fe000 - 0x90202fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib 0x90204000 - 0x90257fff com.apple.CoreText 1.0.0 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText 0x90284000 - 0x90335fff ATS /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS 0x90364000 - 0x9069dfff com.apple.CoreGraphics 1.256.14 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics 0x90728000 - 0x90801fff com.apple.CoreFoundation 6.4.3 (368.12) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x9084a000 - 0x9084afff com.apple.CoreServices 10.4 (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices 0x9084c000 - 0x9094efff libicucore.A.dylib /usr/lib/libicucore.A.dylib 0x909a8000 - 0x90a2cfff libobjc.A.dylib /usr/lib/libobjc.A.dylib 0x90a56000 - 0x90acafff com.apple.framework.IOKit 1.4 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit 0x90ae4000 - 0x90af6fff libauto.dylib /usr/lib/libauto.dylib 0x90afd000 - 0x90dc2fff com.apple.CoreServices.CarbonCore 10.4.1 (611.1) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore 0x90e25000 - 0x90ea5fff com.apple.CoreServices.OSServices 4.0 (4.0.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices 0x90eef000 - 0x90f2ffff com.apple.CFNetwork 10.4.2 (80) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork 0x90f44000 - 0x90f5cfff com.apple.WebServices 1.1.2 (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore 0x90f6c000 - 0x90feafff com.apple.SearchKit 1.0.3 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit 0x9102f000 - 0x91056fff com.apple.Metadata 1.1 (121.6) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata 0x91066000 - 0x91074fff libz.1.dylib /usr/lib/libz.1.dylib 0x91077000 - 0x91239fff com.apple.security 4.0.1 (223) /System/Library/Frameworks/Security.framework/Versions/A/Security 0x9133b000 - 0x91344fff com.apple.DiskArbitration 2.1 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration 0x9134b000 - 0x91372fff com.apple.SystemConfiguration 1.8.0 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration 0x91385000 - 0x9138dfff libbsm.dylib /usr/lib/libbsm.dylib 0x91391000 - 0x9140ffff com.apple.audio.CoreAudio 3.0.1 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio 0x9144d000 - 0x9144dfff com.apple.ApplicationServices 10.4 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices 0x9144f000 - 0x91487fff com.apple.AE 1.5 (297) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE 0x914a2000 - 0x9156dfff com.apple.ColorSync 4.4 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync 0x915c2000 - 0x91655fff com.apple.print.framework.PrintCore 4.0 (172.1) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore 0x9169b000 - 0x91758fff com.apple.QD 3.8.16 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD 0x91796000 - 0x917f4fff com.apple.HIServices 1.5.0 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices 0x91822000 - 0x91845fff com.apple.LangAnalysis 1.6 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis 0x91859000 - 0x9187efff com.apple.FindByContent 1.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/FindByContent.framework/Versions/A/FindByContent 0x91891000 - 0x918d2fff com.apple.LaunchServices 10.4.3 (157) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices 0x918ed000 - 0x91901fff com.apple.speech.synthesis.framework 3.3 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis 0x9190f000 - 0x91945fff com.apple.ImageIO.framework 1.0.2 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO 0x91959000 - 0x91a1ffff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib 0x91a6c000 - 0x91a81fff libcups.2.dylib /usr/lib/libcups.2.dylib 0x91a86000 - 0x91aa2fff libJPEG.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib 0x91aa7000 - 0x91b16fff libJP2.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib 0x91b2d000 - 0x91b31fff libGIF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib 0x91b33000 - 0x91b4bfff libRaw.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRaw.dylib 0x91b4e000 - 0x91b91fff libTIFF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib 0x91b98000 - 0x91bb1fff libPng.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib 0x91bb6000 - 0x91bb9fff libRadiance.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib 0x91bbb000 - 0x91bbbfff com.apple.Accelerate 1.1.1 (Accelerate 1.1.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate 0x91bbd000 - 0x91ca7fff com.apple.vImage 2.0 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage 0x91caf000 - 0x91ccefff com.apple.Accelerate.vecLib 3.1.1 (vecLib 3.1.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib 0x91d3a000 - 0x91d5afff libmx.A.dylib /usr/lib/libmx.A.dylib 0x91d60000 - 0x91dc5fff libvMisc.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib 0x91dcf000 - 0x91e61fff libvDSP.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib 0x91e7b000 - 0x9240bfff libBLAS.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 0x92453000 - 0x92763fff libLAPACK.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib 0x92790000 - 0x9281bfff com.apple.DesktopServices 1.3 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv 0x9285d000 - 0x92a86fff com.apple.Foundation 6.4.1 (567.12) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation 0x92ba4000 - 0x92c82fff libxml2.2.dylib /usr/lib/libxml2.2.dylib 0x92ca2000 - 0x92d90fff libiconv.2.dylib /usr/lib/libiconv.2.dylib 0x92da2000 - 0x92dc0fff libGL.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib 0x92dcb000 - 0x92e25fff libGLU.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib 0x92e43000 - 0x92e43fff com.apple.Carbon 10.4 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon 0x92e45000 - 0x92e59fff com.apple.ImageCapture 3.0 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture 0x92e71000 - 0x92e81fff com.apple.speech.recognition.framework 3.4 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition 0x92e8d000 - 0x92ea2fff com.apple.securityhi 2.0 (203) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI 0x92eb4000 - 0x92f3bfff com.apple.ink.framework 101.2 (69) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink 0x92f4f000 - 0x92f5afff com.apple.help 1.0.3 (32) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help 0x92f64000 - 0x92f91fff com.apple.openscripting 1.2.2 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting 0x92fab000 - 0x92fbbfff com.apple.print.framework.Print 4.0 (187) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print 0x92fc7000 - 0x9302dfff com.apple.htmlrendering 1.1.2 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering 0x9305e000 - 0x930b0fff com.apple.NavigationServices 3.4.1 (3.4) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices 0x930dc000 - 0x930f9fff com.apple.audio.SoundManager 3.9 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound 0x9310b000 - 0x93118fff com.apple.CommonPanels 1.2.2 (73) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels 0x93121000 - 0x93431fff com.apple.HIToolbox 1.4.3 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox 0x9357c000 - 0x93588fff com.apple.opengl 1.4.0 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL 0x9361b000 - 0x93623fff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib 0x93628000 - 0x93628fff com.apple.Cocoa 6.4 (???) /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa 0x9362a000 - 0x93c5bfff com.apple.AppKit 6.4.2 (824.11) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit 0x93fe7000 - 0x94051fff com.apple.CoreData 1.0 (46) /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData 0x94089000 - 0x94153fff com.apple.audio.toolbox.AudioToolbox 1.4.1 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox 0x941a7000 - 0x941a7fff com.apple.audio.units.AudioUnit 1.4 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit 0x941a9000 - 0x94308fff com.apple.QuartzCore 1.4.1 /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore 0x94350000 - 0x9438dfff libsqlite3.0.dylib /usr/lib/libsqlite3.0.dylib 0x94395000 - 0x943e0fff libGLImage.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib 0x94581000 - 0x94590fff libCGATS.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib 0x94598000 - 0x945a4fff libCSync.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib 0x945e9000 - 0x945fdfff libRIP.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib 0x94603000 - 0x9486dfff com.apple.QuickTime 7.0.3 /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime 0x95419000 - 0x9549cfff libstdc++.6.dylib /usr/lib/libstdc++.6.dylibHopefully Janis will have an idea
Firebrand
Camper
RambOrc
Firebrand
Camper
Camper
Camper
dj_jl
*sp = (int)((VObject*)sp[-1])->GetVFunction(*current_statement++); sp++;AS of sight problem, try to create a little test map with one monster and try to debug the sight checking to see what's going on there.
dj_jl
#include <stdio.h> int main(int, const char**) { union { struct { int b1:1; int b2:1; int b3:1; int b4:1; } b; int i; } a; a.i = 0; a.b.b1 = 1; a.b.b4 = 1; printf("%08x\n", a.i); return 0; }On Intel the output is 00000009.
Camper
dj_jl
Index: pr_exec.cpp =================================================================== RCS file: /cvsroot/vavoom/vavoom/source/pr_exec.cpp,v retrieving revision 1.34 diff -r1.34 pr_exec.cpp 175a176,190 > // SwapBits > // > //========================================================================== > > static int SwapBits(int Val) > { > int Ret = 0; > for (int i = 0; i < 32; i++) > if (Val & (1 << i)) > Ret |= 1 << (31 - i); > return Ret; > } > > //========================================================================== > // 412a428,439 > union > { > struct > { > int b1:1; > } b; > int i; > } a; > a.i = 0; > a.b.b1 = 1; > bool NeedBitSwap = a.i != 1; > 462a490,494 > case OPC_PUSHBOOL: > case OPC_ASSIGNBOOL: > if (NeedBitSwap) > Statements[i + 1] = SwapBits(Statements[i + 1]); > break;
Camper
case OPC_PUSHBOOL: case OPC_ASSIGNBOOL: if (NeedBitSwap) Statements[i + 1] = SwapBits(Statements[i + 1]); break;The singleplayer part disappears completely. So it might be the way, but not like this
dj_jl
Index: pr_exec.cpp =================================================================== RCS file: /cvsroot/vavoom/vavoom/source/pr_exec.cpp,v retrieving revision 1.34 diff -r1.34 pr_exec.cpp 175a176,190 > // SwapBits > // > //========================================================================== > > static int SwapBits(int Val) > { > int Ret = 0; > for (int i = 0; i < 32; i++) > if (Val & (1 << i)) > Ret |= 1 << (31 - i); > return Ret; > } > > //========================================================================== > // 412a428,439 > union > { > struct > { > int b1:1; > } b; > int i; > } a; > a.i = 0; > a.b.b1 = 1; > bool NeedBitSwap = a.i != 1; > 415a443 > int PrevOpc = OPC_DONE; 462a491,495 > case OPC_PUSHBOOL: > case OPC_ASSIGNBOOL: > if (NeedBitSwap && PrevOpc != OPC_LOCALADDRESS && PrevOpc != OPC_GLOBALADDRESS) > Statements[i + 1] = SwapBits(Statements[i + 1]); > break; 463a497 > PrevOpc = Statements;
Camper
dj_jl
Index: sv_acs.cpp =================================================================== RCS file: /cvsroot/vavoom/vavoom/source/sv_acs.cpp,v retrieving revision 1.34 diff -r1.34 sv_acs.cpp 2109c2109 < #define PC_GET_INT (*PCodePtr++) --- > #define PC_GET_INT LittleLong(*PCodePtr++) 2449c2449 < PCodePtr = activeObject->OffsetToPtr(*PCodePtr); --- > PCodePtr = activeObject->OffsetToPtr(LittleLong(*PCodePtr)); 2455c2455 < PCodePtr = activeObject->OffsetToPtr(*PCodePtr); --- > PCodePtr = activeObject->OffsetToPtr(LittleLong(*PCodePtr)); 2669c2669 < PCodePtr = activeObject->OffsetToPtr(*PCodePtr); --- > PCodePtr = activeObject->OffsetToPtr(LittleLong(*PCodePtr)); 2701c2701 < PCodePtr = activeObject->OffsetToPtr(*PCodePtr); --- > PCodePtr = activeObject->OffsetToPtr(LittleLong(*PCodePtr)); 4137c4137 < int caseval = PCodePtr[mid * 2]; --- > int caseval = LittleLong(PCodePtr[mid * 2]); 4140c4140 < PCodePtr = activeObject->OffsetToPtr(PCodePtr[mid * 2 + 1]); --- > PCodePtr = activeObject->OffsetToPtr(LittleLong(PCodePtr[mid * 2 + 1]));The Z_CheckHeap error indicates that somewhere there's a memory corruption. Try to place dprintf(.....); Z_CheckHeap(); in main loop to find out where it gets corrupted.
Camper
RambOrc
dj_jl
RambOrc
RambOrc
Firebrand
RambOrc
Firebrand
RambOrc
RambOrc
Firebrand
RambOrc
dj_jl
RambOrc
Firebrand
dj_jl
RambOrc
RambOrc
Firebrand
RambOrc
RambOrc
Firebrand
dj_jl
RambOrc
dj_jl
RambOrc
Firebrand
RambOrc