ports/games/golddig/files/patch-movement.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

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);
}