Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
vor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added Jason's comments from openbubbles bounce code.
[vor.git]
/
rocks.c
diff --git
a/rocks.c
b/rocks.c
index
7285d3b
..
701e5a5
100644
(file)
--- a/
rocks.c
+++ b/
rocks.c
@@
-46,7
+46,7
@@
load_rocks(void)
snprintf(a, ROCK_LEN, "sprites/rock%02d.png", i);
load_sprite(SPRITE(&prototypes[i]), a);
prototypes[i].sprite_type = ROCK;
snprintf(a, ROCK_LEN, "sprites/rock%02d.png", i);
load_sprite(SPRITE(&prototypes[i]), a);
prototypes[i].sprite_type = ROCK;
- prototypes[i].flags = ALL_FLAGS;
+ prototypes[i].flags = MOVE|DRAW|COLLIDE;
}
memset(rocks, 0, MAXROCKS*sizeof(struct rock));
}
memset(rocks, 0, MAXROCKS*sizeof(struct rock));
@@
-219,7
+219,6
@@
blast_rocks(float x, float y, float radius)
n *= 15;
r->dx += 54.0*dx/n;
r->dy += 54.0*dy/n;
n *= 15;
r->dx += 54.0*dx/n;
r->dy += 54.0*dy/n;
- r->flags &= ~COLLIDE_FLAG;
}
}
}
}
}
}