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
started factoring out global t_frame
[vor.git]
/
dust.c
diff --git
a/dust.c
b/dust.c
index
b336696
..
5ee9e20
100644
(file)
--- a/
dust.c
+++ b/
dust.c
@@
-27,11
+27,11
@@
init_dust(void)
}
void
}
void
-move_dust(void)
+move_dust(float ticks)
{
int i;
{
int i;
- float xscroll = screendx * t_frame;
- float yscroll = screendy * t_frame;
+ float xscroll = screendx * ticks;
+ float yscroll = screendy * ticks;
for(i=0; i<N_DUST_MOTES; i++) {
motes[i].x -= xscroll / (1.3 + motes[i].z);
motes[i].y -= yscroll / (1.3 + motes[i].z);
for(i=0; i<N_DUST_MOTES; i++) {
motes[i].x -= xscroll / (1.3 + motes[i].z);
motes[i].y -= yscroll / (1.3 + motes[i].z);