Jeck - Some warnings cleanup.

This commit is contained in:
wagic.jeck
2009-08-28 05:40:10 +00:00
parent e5bbbb358f
commit d1f6cdcd96
7 changed files with 51 additions and 66 deletions

View File

@@ -93,7 +93,7 @@ PIXEL_TYPE GameOption::asColor(PIXEL_TYPE fallback)
if(str[i] == ','){
if(temp == "")
return fallback;
color[subpixel] = atoi(temp.c_str());
color[subpixel] = (unsigned char) atoi(temp.c_str());
temp = "";
subpixel++;
continue;
@@ -106,7 +106,7 @@ PIXEL_TYPE GameOption::asColor(PIXEL_TYPE fallback)
}
if(temp != "")
color[subpixel] = atoi(temp.c_str());
color[subpixel] = (unsigned char) atoi(temp.c_str());
if(subpixel == 2)
color[3] = 255;