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
joysticks: configurable, working, buttons enable
[vor.git]
/
dust.c
diff --git
a/dust.c
b/dust.c
index
4eeeb8b
..
0e4daa2
100644
(file)
--- a/
dust.c
+++ b/
dust.c
@@
-1,7
+1,7
@@
#include <SDL.h>
#include <math.h>
#include <SDL.h>
#include <math.h>
-#include "config.h"
+#include "vorconfig.h"
#include "globals.h"
#include "dust.h"
#include "float.h"
#include "globals.h"
#include "dust.h"
#include "float.h"
@@
-28,11
+28,11
@@
init_dust(void)
}
void
}
void
-move_dust(float ticks)
+move_dust(void)
{
int i;
{
int i;
- float xscroll = screendx * ticks;
- float yscroll = screendy * ticks;
+ float xscroll = screendx * t_frame;
+ float yscroll = screendy * t_frame;
for(i=0; i<N_DUST_MOTES; i++) {
motes[i].x -= xscroll / (1.3 + motes[i].z);
for(i=0; i<N_DUST_MOTES; i++) {
motes[i].x -= xscroll / (1.3 + motes[i].z);
@@
-44,11
+44,11
@@
move_dust(float ticks)
}
void
}
void
-draw_dust(SDL_Surface *s)
+draw_dust(void)
{
int i;
{
int i;
- uint16_t *pixels = s->pixels;
+ uint16_t *pixels = surf_screen->pixels;
for(i=0; i<N_DUST_MOTES; i++) {
for(i=0; i<N_DUST_MOTES; i++) {
- pixels[s->pitch/2*(int)motes[i].y + (int)motes[i].x] = motes[i].color;
+ pixels[surf_screen->pitch/2*(int)motes[i].y + (int)motes[i].x] = motes[i].color;
}
}
}
}