openbsd-ports/games/xonix/patches/patch-xonix_h
miod 3efbeaf828 A potpourri of changes:
- do not mention a mail being sent when hiscore is broken, this feature is
  disabled.
- when a player dies, reset eater position. Also pick startup position closer
  to the MSDOS version of the game.
- use {s,}random instead of {s,}rand.

ok deanna@ for my yearly ports commit.
2008-04-25 22:39:33 +00:00

18 lines
439 B
Plaintext

$OpenBSD: patch-xonix_h,v 1.1 2008/04/25 22:39:36 miod Exp $
--- xonix.h.orig Fri Sep 8 09:51:30 1995
+++ xonix.h Sat Feb 9 13:59:09 2008
@@ -288,11 +288,11 @@ extern void ShowHighScore (void);
#endif /* USE_X11 */
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__OpenBSD__)
#define rand() random()
#define srand(x) srandom(x)
-#endif /* __FreeBSD */
+#endif /* __FreeBSD__ || __OpenBSD__ */
#endif /* XONIX_H */