Diffstat (limited to 'noncore/games/sfcave-sdl/terrain.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/sfcave-sdl/terrain.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/games/sfcave-sdl/terrain.cpp b/noncore/games/sfcave-sdl/terrain.cpp index b243f45..5943275 100644 --- a/noncore/games/sfcave-sdl/terrain.cpp +++ b/noncore/games/sfcave-sdl/terrain.cpp | |||
@@ -1,27 +1,27 @@ | |||
1 | #include "SDL.h" | 1 | #include <SDL/SDL.h> |
2 | #include "SDL_rotozoom.h" | 2 | #include <SDL/SDL_rotozoom.h> |
3 | #include "SDL_gfxPrimitives.h" | 3 | #include <SDL/SDL_gfxPrimitives.h> |
4 | 4 | ||
5 | #include "constants.h" | 5 | #include "constants.h" |
6 | #include "terrain.h" | 6 | #include "terrain.h" |
7 | #include "random.h" | 7 | #include "random.h" |
8 | #include "util.h" | 8 | #include "util.h" |
9 | #include "starfield.h" | 9 | #include "starfield.h" |
10 | 10 | ||
11 | Terrain :: Terrain( int w, int h, bool drawTop, bool drawBottom ) | 11 | Terrain :: Terrain( int w, int h, bool drawTop, bool drawBottom ) |
12 | { | 12 | { |
13 | sWidth = w; | 13 | sWidth = w; |
14 | sHeight = h; | 14 | sHeight = h; |
15 | speed = 1; | 15 | speed = 1; |
16 | segSize = sWidth/(MAPSIZE-2)+1; | 16 | segSize = sWidth/(MAPSIZE-2)+1; |
17 | this->drawTop = drawTop; | 17 | this->drawTop = drawTop; |
18 | this->drawBottom = drawBottom; | 18 | this->drawBottom = drawBottom; |
19 | 19 | ||
20 | stars = new StarField( true ); | 20 | stars = new StarField( true ); |
21 | 21 | ||
22 | SDL_Surface *tmp = SDL_CreateRGBSurface(SDL_SWSURFACE, sWidth + 20, sHeight, 32, | 22 | SDL_Surface *tmp = SDL_CreateRGBSurface(SDL_SWSURFACE, sWidth + 20, sHeight, 32, |
23 | 0x000000ff,0x0000ff00, 0x00ff0000, 0xff000000); | 23 | 0x000000ff,0x0000ff00, 0x00ff0000, 0xff000000); |
24 | terrainSurface = SDL_DisplayFormat( tmp ); | 24 | terrainSurface = SDL_DisplayFormat( tmp ); |
25 | SDL_FreeSurface( tmp ); | 25 | SDL_FreeSurface( tmp ); |
26 | 26 | ||
27 | initTerrain(); | 27 | initTerrain(); |