short Zsource;
short TrafMaxX, TrafMaxY;
+int GetFromMap(int x);
+int DriveDone(void);
+int TryGo(int z);
+int RoadTest(int x);
+void PullPos(void);
+void SetTrafMem(void);
+int TryDrive(void);
+
/* comefrom: DoIndustrial DoCommercial DoResidential */
+int
MakeTraf(int Zt)
{
short xtem, ytem;
/* comefrom: MakeTraf */
+void
SetTrafMem(void)
{
register short x, z;
/* comefrom: TryGo */
+void
PushPos(void)
{
PosStackN++;
/* comefrom: SetTrafMem */
+void
PullPos(void)
{
SMapX = SMapXStack[PosStackN];
/* comefrom: DoSPZone MakeTraf */
+int
FindPRoad(void) /* look for road on edges of zone */
{
static short PerimX[12] = {-1, 0, 1, 2, 2, 2, 1, 0,-1,-2,-2,-2};
}
+int
FindPTele(void) /* look for telecommunication on edges of zone */
{
static short PerimX[12] = {-1, 0, 1, 2, 2, 2, 1, 0,-1,-2,-2,-2};
/* comefrom: MakeTraf */
+int
TryDrive(void)
{
short z;
/* comefrom: TryDrive */
+int
TryGo(int z)
{
short x, rdir, realdir;
/* comefrom: TryGo DriveDone */
+int
GetFromMap(int x)
{
switch (x) {
/* comefrom: TryDrive */
+int
DriveDone(void)
{
static short TARGL[3] = {COMBASE, LHTHR, LHTHR};
static short TARGH[3] = {NUCLEAR, PORT, COMBASE}; /* for destinations */
- register short x, z, l, h;
+#if 0
+ register short x;
+#endif
+ register short z, l, h;
/* unwound -Don */
#if 0
/* comefrom: TryGo FindPRoad */
+int
RoadTest(int x)
{
x = x & LOMASK;