24 lines
622 B
Text
24 lines
622 B
Text
$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)
|
|
{
|