openbsd-ports/games/xripple/patches/patch-aa

23 lines
433 B
Plaintext

--- xrp.c.orig Wed Jul 10 08:47:30 1996
+++ xrp.c Wed Mar 18 14:49:59 1998
@@ -124,7 +124,19 @@
main(int argc, char **argv)
{
+ int ch;
+ extern char *__progname;
waterh=64;
+ while ((ch = getopt(argc, argv, "h:")) != -1)
+ switch (ch) {
+ case 'h':
+ waterh = atoi(optarg);
+ break;
+ default:
+ fprintf(stderr, "usage: %s [-h <height>]\n", __progname);
+ exit(1);
+ break;
+ }
OpenWindow(waterh);
doit();
}