aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/game.cpp
diff options
context:
space:
mode:
authorStrangerke2011-06-11 22:35:21 +0200
committerStrangerke2011-06-11 22:35:21 +0200
commit11264a60a7dc8e3e04b5b73f6794269f097010ff (patch)
tree5c1772bfb1bcb419b6efd0324d363397ef2e5691 /engines/cge/game.cpp
parent15d98b2a5479967590c3eba82e349f642c4ca7cf (diff)
downloadscummvm-rg350-11264a60a7dc8e3e04b5b73f6794269f097010ff.tar.gz
scummvm-rg350-11264a60a7dc8e3e04b5b73f6794269f097010ff.tar.bz2
scummvm-rg350-11264a60a7dc8e3e04b5b73f6794269f097010ff.zip
CGE: Stubbing and cleanup made by SylvainTV
Diffstat (limited to 'engines/cge/game.cpp')
-rw-r--r--engines/cge/game.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/cge/game.cpp b/engines/cge/game.cpp
index d9bcf916bb..b6530323e4 100644
--- a/engines/cge/game.cpp
+++ b/engines/cge/game.cpp
@@ -91,8 +91,8 @@ int FLY::L = 20,
FLY::FLY (BITMAP ** shpl)
: SPRITE(shpl), Tx(0), Ty(0)
{
- Step(random(2));
- Goto(L+random(R-L-W), T+random(B-T-H));
+ Step(new_random(2));
+ Goto(L+new_random(R-L-W), T+new_random(B-T-H));
}
@@ -103,10 +103,10 @@ void FLY::Tick (void)
Step();
if (! Flags.Kept)
{
- if (random(10) < 1)
+ if (new_random(10) < 1)
{
- Tx = random(3) - 1;
- Ty = random(3) - 1;
+ Tx = new_random(3) - 1;
+ Ty = new_random(3) - 1;
}
if (X + Tx < L || X + Tx + W > R) Tx = -Tx;
if (Y + Ty < T || Y + Ty + H > B) Ty = -Ty;