mirror of
https://git.freebsd.org/ports.git
synced 2025-06-20 04:00:41 -04:00
C (and linkers) has changed a little since 2001, so patch up the places where "extern" is needed, add <string.h> and missing cases in switch() to silence warnings. golddig runs nearly as well as on my Apple //c (see games/kgoldrunner for a newer take on the same concept, though) Not taking maintainership, I just spotted this among the recent fallout-cleanup and thought "I can do that while I wait for the potatoes to boil."
26 lines
719 B
C
26 lines
719 B
C
--- movement.c.orig 1991-04-02 06:46:54 UTC
|
|
+++ movement.c
|
|
@@ -426,6 +426,7 @@ int num; /* Number of bad g
|
|
newdir = thing->dir;
|
|
}
|
|
break;
|
|
+ case STAND: case DIGLEFT: case DIGRIGHT: case UNMOVE: case PUTDOWN: break;
|
|
}
|
|
|
|
/* By default, the thing is standing in place */
|
|
@@ -498,6 +499,7 @@ int num; /* Number of bad g
|
|
thing->dir = RIGHT;
|
|
}
|
|
break;
|
|
+ case STAND: case UNMOVE: break;
|
|
}
|
|
return(0);
|
|
}
|
|
@@ -602,6 +604,7 @@ int num; /* Number of bad g
|
|
thing->dir = RIGHT;
|
|
}
|
|
break;
|
|
+ case STAND: case DIGLEFT: case DIGRIGHT: case UNMOVE: case PUTDOWN: break;
|
|
}
|
|
return(0);
|
|
}
|