freebsd-ports/games/golddig/files/patch-moveall.c
Adriaan de Groot c0aeda4368 Fix games/golddig in the face of picky compilers
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."
2021-02-18 16:37:39 +00:00

13 lines
552 B
C

--- moveall.c.orig 2021-02-18 16:19:37 UTC
+++ moveall.c
@@ -9,8 +9,8 @@ extern int numbadguy;
/* These are the graphics cursors used for drawing the player at */
/* various times. */
-GC standgc,angelgc,angelugc,angellgc,flygc,hang1gc,hang2gc,up1gc,up2gc;
-GC left1gc,left2gc,right1gc,right2gc;
+extern GC standgc,angelgc,angelugc,angellgc,flygc,hang1gc,hang2gc,up1gc,up2gc;
+extern GC left1gc,left2gc,right1gc,right2gc;
/* Redraw the player. The graphics cursors all use the GXor function */
/* so they will not erase what is underneath. */