Repositories
/
curblaster.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b63da45
)
Fixed pod direction randomization
author
limb
<limb@bc5cbbab-a4ec-0310-bb52-ff3d296db539>
Mon, 27 Nov 2006 19:35:44 +0000
(19:35 +0000)
committer
limb
<limb@bc5cbbab-a4ec-0310-bb52-ff3d296db539>
Mon, 27 Nov 2006 19:35:44 +0000
(19:35 +0000)
git-svn-id: svn+ssh://svn/var/repos/curfender@539
bc5cbbab
-a4ec-0310-bb52-
ff3d296db539
main.cpp
patch
|
blob
|
blame
|
history
diff --git
a/main.cpp
b/main.cpp
index
3a69892
..
dae40be
100644
(file)
--- a/
main.cpp
+++ b/
main.cpp
@@
-245,8
+245,8
@@
int main(){
srand(time(NULL));
pod2.y = rand()%560; //anywhere along the surface
srand(time(NULL));
- pod2.direction = rand()%1;
- if(pod2.direction
==
0){
+ pod2.direction = rand()%1
000
;
+ if(pod2.direction
<50
0){
pod2.direction = 4;
} else {
pod2.direction = 6;