Commit 6b2a8919 authored by pickle136's avatar pickle136

Cleaned up warnings

parent e5e4e12c
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
// Files // Files
#ifdef __SYMBIAN32__ #ifdef __SYMBIAN32__
#ifdef UIQ3 #ifdef UIQ3
#define CONFIG_FILE "c:\\shared\\openjazz\\openjazz.cfg"" #define CONFIG_FILE "c:\\shared\\openjazz\\openjazz.cfg"
#else #else
#define CONFIG_FILE "c:\\data\\openjazz\\openjazz.cfg" #define CONFIG_FILE "c:\\data\\openjazz\\openjazz.cfg"
#endif #endif
...@@ -221,7 +221,7 @@ EXTERN fixed fTan (fixed angle); ...@@ -221,7 +221,7 @@ EXTERN fixed fTan (fixed angle);
#ifdef VERBOSE #ifdef VERBOSE
#define LOG(x, y) log(x, y) #define LOG(x, y) log(x, y)
#else #else
#define LOG(x, y) x; y #define LOG(x, y)
#endif #endif
#endif #endif
......
...@@ -349,7 +349,7 @@ unsigned char* File::loadPixels (int length, int key) { ...@@ -349,7 +349,7 @@ unsigned char* File::loadPixels (int length, int key) {
unsigned char* pixels; unsigned char* pixels;
unsigned char* sorted; unsigned char* sorted;
unsigned char mask; unsigned char mask = 0;
int count; int count;
......
...@@ -29,20 +29,20 @@ pixel_t pixel_get(int x, int y, const unsigned char* pix, unsigned slice, unsign ...@@ -29,20 +29,20 @@ pixel_t pixel_get(int x, int y, const unsigned char* pix, unsigned slice, unsign
if (opt_tes) { if (opt_tes) {
if (x < 0) if (x < 0)
x += dx; x += dx;
if (x >= dx) if ((unsigned int)x >= dx)
x -= dx; x -= dx;
if (y < 0) if (y < 0)
y += dy; y += dy;
if (y >= dy) if ((unsigned int)y >= dy)
y -= dy; y -= dy;
} else { } else {
if (x < 0) if (x < 0)
x = 0; x = 0;
if (x >= dx) if ((unsigned int)x >= dx)
x = dx - 1; x = dx - 1;
if (y < 0) if (y < 0)
y = 0; y = 0;
if (y >= dy) if ((unsigned int)y >= dy)
y = dy - 1; y = dy - 1;
} }
......
...@@ -183,7 +183,7 @@ SDL_Color* Video::getPalette () { ...@@ -183,7 +183,7 @@ SDL_Color* Video::getPalette () {
} }
void Video::changePalette (SDL_Color *palette, unsigned char first, unsigned char amount) { void Video::changePalette (SDL_Color *palette, unsigned char first, unsigned int amount) {
SDL_SetPalette(screen, SDL_PHYSPAL, palette, first, amount); SDL_SetPalette(screen, SDL_PHYSPAL, palette, first, amount);
......
...@@ -76,7 +76,7 @@ class Video { ...@@ -76,7 +76,7 @@ class Video {
void setPalette (SDL_Color *palette); void setPalette (SDL_Color *palette);
SDL_Color* getPalette (); SDL_Color* getPalette ();
void changePalette (SDL_Color *palette, unsigned char first, unsigned char amount); void changePalette (SDL_Color *palette, unsigned char first, unsigned int amount);
void restoreSurfacePalette (SDL_Surface *surface); void restoreSurfacePalette (SDL_Surface *surface);
int getWidth (); int getWidth ();
......
...@@ -322,7 +322,8 @@ int Level::load (char *fileName, unsigned char diff, bool checkpoint) { ...@@ -322,7 +322,8 @@ int Level::load (char *fileName, unsigned char diff, bool checkpoint) {
File *file; File *file;
unsigned char *buffer; unsigned char *buffer;
char *string, *ext; const char *ext;
char *string;
int tiles; int tiles;
int count, x, y, type; int count, x, y, type;
......
...@@ -253,7 +253,7 @@ int Scene::play () { ...@@ -253,7 +253,7 @@ int Scene::play () {
SDL_Rect dst; SDL_Rect dst;
unsigned int sceneIndex = 0; unsigned int sceneIndex = 0;
SceneImage *image; SceneImage *image;
SceneAnimation* animation; SceneAnimation* animation = NULL;
SceneFrame* currentFrame = NULL; SceneFrame* currentFrame = NULL;
SceneFrame* lastFrame = NULL; SceneFrame* lastFrame = NULL;
int frameDelay = 0; int frameDelay = 0;
......
...@@ -483,7 +483,7 @@ void Scene::loadScripts (File *f) { ...@@ -483,7 +483,7 @@ void Scene::loadScripts (File *f) {
int textPosY = -1; int textPosY = -1;
int extraheight = -1; int extraheight = -1;
SDL_Rect textRect; SDL_Rect textRect = { 0,0,0,0 };
bool textRectValid = false; bool textRectValid = false;
f->seek(scriptStarts[loop], true); // Seek to data start f->seek(scriptStarts[loop], true); // Seek to data start
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment