pkgsrc/games/copter-commander/patches/patch-ad
wiz c371bf9b2e Initial import of copter-commander-1.8.
From the DESCR:
Copter Commander is a free implementation of Armor Alley and Rescue
Raiders.  R.R. was associated with a company called Sir-Tech
software, and A.A. was associated with Three Sixty Pacific.

Basically, you try to send a convoy from your part of the screen
that destroys the commanding vessel of the opposing convoy, while
protecting your own commanding vessel.

You can only directly control a helicopter, though, and the order
of creation of the new vehicles/infantry.
2002-03-08 16:45:35 +00:00

22 lines
560 B
Text

$NetBSD: patch-ad,v 1.1.1.1 2002/03/08 16:45:36 wiz Exp $
--- language.c.orig Wed Nov 28 23:44:02 2001
+++ language.c
@@ -29,7 +29,7 @@
#include <dirent.h> /* for readdir */
#include <assert.h>
#include <errno.h>
-#include <alloca.h>
+#include <unistd.h>
#include "coco.h"
@@ -511,7 +511,7 @@
int
coco_dice( int number, unsigned char sides )
{
- int randomness;
+ int randomness = 0;
int bytes_left = 0; /* bytes of randomness in sides */
int acc = number; /* every die starts with 1, not 0 */
if (0==sides) return 1; /* nonsense! */