[comp.sources.games.bugs] omega on Xenix 386

kayvan@mrspoc.Transact.COM (Kayvan Sylvan) (07/21/89)

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