#define __SDLPTC_H__
#include "SDL.h"
-#ifdef __PORT__
#include <string.h>
#include <stdlib.h>
-#endif // #ifdef __PORT__
-
#include "types.h"
-#ifndef __PORT__
-#define randomize() srand(time(NULL))
-#define random(max) (rand() % (max))
-#endif // #ifndef __PORT__
class Error
{
{
Uint32 flags = SDL_SWSURFACE;
- if (SDL_Init(SDL_INIT_VIDEO|SDL_INIT_JOYSTICK | SDL_INIT_AUDIO | SDL_INIT_TIMER) < 0)
+//Testing if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_AUDIO | SDL_INIT_TIMER) < 0)
+ if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_AUDIO | SDL_INIT_TIMER | SDL_INIT_NOPARACHUTE) < 0)
throw Error(SDL_GetError());
const SDL_VideoInfo * info = SDL_GetVideoInfo(); // Let us get proper info about the platform.
int nJoystick;
};
-#endif // #ifndef __SDLPTC_H__
+#endif // __SDLPTC_H__