Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
vor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
941aee9
)
fixed x coordinate range for new_rocks()
author
Jason Woofenden
<jason183@herkamire.com>
Tue, 3 Apr 2007 21:20:40 +0000
(17:20 -0400)
committer
Jason Woofenden
<jason183@herkamire.com>
Tue, 3 Apr 2007 21:20:40 +0000
(17:20 -0400)
rocks.c
patch
|
blob
|
history
diff --git
a/rocks.c
b/rocks.c
index
9384fe0
..
7c43427
100644
(file)
--- a/
rocks.c
+++ b/
rocks.c
@@
-175,14
+175,14
@@
new_rocks(void)
r->dy = RDY*crnd();
break;
case BOTTOM:
- r->x = frnd()*(XSIZE + r->image->w);
+ r->x = (frnd()*(XSIZE + r->image->w)) - r->image->w;
r->y = YSIZE;
r->dx = RDX*crnd();
r->dy = -weighted_rnd_range(rmin[i], rmax[i]) + screendy;
break;
case TOP:
- r->x = frnd()*(XSIZE + r->image->w);
+ r->x = (frnd() * (XSIZE + r->image->w)) - r->image->w;
r->y = -r->image->h;
r->dx = RDX*crnd();