36 lines
1,010 B
Text
36 lines
1,010 B
Text
$NetBSD: patch-al,v 1.1 2001/01/04 01:09:00 wiz Exp $
|
|
|
|
--- clanbomber/Bomber_Corpse.cpp.orig Sun Jan 9 02:18:32 2000
|
|
+++ clanbomber/Bomber_Corpse.cpp
|
|
@@ -76,7 +76,7 @@
|
|
|
|
if (splash_counter!=-1)
|
|
{
|
|
- cur_dir = Direction(rand() % 4);
|
|
+ cur_dir = Direction(random() % 4);
|
|
move();
|
|
CL_Iterator<Bomber> bomber_object_counter(app->bomber_objects);
|
|
while (bomber_object_counter.next() != NULL)
|
|
@@ -89,7 +89,7 @@
|
|
{
|
|
if (ready_to_splash)
|
|
{
|
|
- PLAY_PAN(Resources::Splash(rand()%2));
|
|
+ PLAY_PAN(Resources::Splash(random()%2));
|
|
splash_counter++;
|
|
if (splash_counter==5)
|
|
{
|
|
@@ -126,10 +126,10 @@
|
|
cp = new Corpse_Part( x, y, app );
|
|
|
|
int xmaptiles, ymaptiles;
|
|
- xmaptiles = rand() % 17;
|
|
- ymaptiles = rand() % 13;
|
|
+ xmaptiles = random() % 17;
|
|
+ ymaptiles = random() % 13;
|
|
|
|
- cp->fly_to(xmaptiles*40 +rand()%20-10 ,ymaptiles*40 +rand()%20-10);
|
|
+ cp->fly_to(xmaptiles*40 +random()%20-10 ,ymaptiles*40 +random()%20-10);
|
|
}
|
|
}
|
|
}
|