summaryrefslogtreecommitdiff
path: root/games/clanbomber/patches/patch-ad
blob: 17cc6acb9715398a75384f19de9fe2d27bbeab61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-ad,v 1.1 2001/01/04 01:08:59 wiz Exp $

--- clanbomber/Controller_AI.cpp.orig	Tue Mar  7 01:36:56 2000
+++ clanbomber/Controller_AI.cpp
@@ -588,8 +588,8 @@
 
 			for (int per=0; per<10; per++)
 			{
-				int a = rand()%4;
-				int b = rand()%4;
+				int a = random()%4;
+				int b = random()%4;
 				Direction dummy;
 				dummy = dirs[a];
 				dirs[a] = dirs[b];
@@ -960,7 +960,7 @@
 				bomber->set_pos( x_org, y_org );
 			}
 
-			if (dmap[x][y] > 0  &&  dmap[x][y] == best.z  &&  rand()%2)
+			if (dmap[x][y] > 0  &&  dmap[x][y] == best.z  &&  random()%2)
 			{
 				if (distance >= max_distance)
 				{