blob: c056e0b6dfccfffdcf6e361315b0cdce9746f114 (
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
25
26
27
28
29
30
31
32
33
34
35
36
|
$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);
}
}
}
|