projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Committing RandomGenerator patch from Allen King, with a few small changes
[supertux.git]
/
data
/
levels
/
world1
/
intro.nut
diff --git
a/data/levels/world1/intro.nut
b/data/levels/world1/intro.nut
index
e418a7f
..
03c14fd
100644
(file)
--- a/
data/levels/world1/intro.nut
+++ b/
data/levels/world1/intro.nut
@@
-85,7
+85,7
@@
function shake_bush()
local bushx = BUSH.get_pos_x();
local bushy = BUSH.get_pos_y();
for(local i = 0; i < 20; ++i) {
- BUSH.set_pos(bushx +
rand() % 6
- 3, bushy);
+ BUSH.set_pos(bushx +
RandomGenerator.rand1i(6)
- 3, bushy);
wait(0.05);
}
}