Diffstat (limited to 'noncore/games/sfcave-sdl/starfield.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/games/sfcave-sdl/starfield.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/games/sfcave-sdl/starfield.cpp b/noncore/games/sfcave-sdl/starfield.cpp index 82edfc1..3b26895 100644 --- a/noncore/games/sfcave-sdl/starfield.cpp +++ b/noncore/games/sfcave-sdl/starfield.cpp @@ -1,50 +1,50 @@ -#include "SDL.h"
-#include "SDL_gfxPrimitives.h"
+#include <SDL/SDL.h> +#include <SDL/SDL_gfxPrimitives.h> #include <stdlib.h>
#include "starfield.h"
#include "random.h"
#include "util.h"
#define VERTICAL_VELOCITY 0
StarField :: StarField( bool side, int nStars, int mx, int my, int minz, int maxz )
{
nrStars = nStars;
maxX = mx;
maxY = my;
minZ = minz;
maxZ = maxz;
min_brightness = 50;
top_star_speed = 6;
sideways = side;
if ( !sideways )
{
x = new int[nrStars];
y = new int[nrStars];
z = new int[nrStars];
star_color = 0;
vel_x = 0;
vel_y = 0;
pos_x = 0;
pos_y = 0;
}
else
{
star_color = new int[nrStars];
vel_x = new int[nrStars];
vel_y = new int[nrStars];
pos_x = new int[nrStars];
pos_y = new int[nrStars];
x = 0;
y = 0;
z = 0;
}
init();
|