Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!sun-barr!newstop!sun!coherent!mrspoc!kayvan From: kayvan@mrspoc.Transact.COM (Kayvan Sylvan) Newsgroups: comp.sources.games.bugs Subject: omega on Xenix 386 (Solution) Message-ID: Date: 21 Jul 89 07:50:55 GMT Sender: kayvan@mrspoc.Transact.COM (Kayvan Sylvan) Organization: Transact Software, Inc. Lines: 22 Okay, all you Xenix 386'ers just waiting to get Omega up on your systems, listen up. I was stumped for a while, see... It got to oscr.c, getspot(), and blammo, core dump, see... I was getting pretty tired and annoyed... All the clues were baffling, and the pieces of code were no help. Then, I started shooting bullets in the dark. After a few screams from damsels in distress (scared by the gunshots, I suppose), my mind was going on overdrive, and I got a hunch... Structure alignments... The solution? Add -Zp2 to the compilation flags in the Makefile. This aligns structure members on 2-byte boundries and makes the game work. Don't ask me why or how... Although if you have an explanation I'd love to hear it! ---Kayvan -- Kayvan Sylvan @ Transact Software, Inc. -*- Mountain View, CA (415) 961-6112 Internet: kayvan@Transact.COM -*- UUCP: ...!{apple,pyramid,mips}!mrspoc!kayvan