Article View: net.sources.games
Article #744Re: bug in empire
From: Mark C. Tucker
Date: Tue, 30 Dec 1986 14:43
Date: Tue, 30 Dec 1986 14:43
21 lines
1292 bytes
1292 bytes
One problem with Empire on a Sun3 starts with the fact that
In the function SET(), FORTRAN expects a character, but GEN passes
an integer. This works on a VAX, because the lowest byte is
the least significant. But the sun sees an integer 33 as a
null-byte, and confuses set.
I fixed this problem by changing the AREA parameter to SET to
iiAREA, (allowing the CHARACTER AREA declaration to serve to
declare a local variable), then tossing in a simple
area = char(iiarea)
to initialize the local CHAR to the given INTEGER.
But Empire still crashes after you make a move (segmentation violation).
I suspect more CHARACTER hackery.
-- Mark Tucker
Technical Details
Message-ID:
<586@briar.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!husc6!necntc!encore!linus!philabs!briar!mctReferences:
<MS.V3.20.dk1z.80022301.ghostwheel.sun3.1545.1@andrew.cmu.edu>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!husc6!necntc!encore!linus!philabs!briar!mct From: mct@briar.UUCP (Mark C. Tucker) Newsgroups: net.sources.games Subject: Re: bug in empire Message-ID: <586@briar.UUCP> Date: Tue, 30-Dec-86 09:43:29 EST Article-I.D.: briar.586 Posted: Tue Dec 30 09:43:29 1986 Date-Received: Wed, 31-Dec-86 05:36:31 EST References: <MS.V3.20.dk1z.80022301.ghostwheel.sun3.1545.1@andrew.cmu.edu> Reply-To: mct@briar.philips.com.UUCP (Mark C. Tucker) Organization: Philips Laboratories, Briarcliff Manor, NY Lines: 21