updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / alienblaster / alienblaster-1.1.0-64bit.patch
blobd088a4575aece0e59223e6b4f65a03c1e59d1dd1
1 diff -up alienblaster/src/options.cc~ alienblaster/src/options.cc
2 --- alienblaster/src/options.cc~ 2007-07-22 21:13:29.000000000 +0200
3 +++ alienblaster/src/options.cc 2007-07-22 21:13:29.000000000 +0200
4 @@ -48,7 +48,7 @@ Options::Options(const string lFilename)
5 string newLine;
6 getline( inputFile, newLine );
7 // search delimiter
8 - unsigned int pos = newLine.find("=");
9 + string::size_type pos = newLine.find("=");
10 // comment line or no delimiter found
11 if (( newLine[0] != '#' ) && ( pos != string::npos )) {
12 string key = newLine.substr(0,pos);
13 diff -up alienblaster/src/font.cc~ alienblaster/src/font.cc
14 --- alienblaster/src/font.cc~ 2007-07-22 21:14:44.000000000 +0200
15 +++ alienblaster/src/font.cc 2007-07-22 21:14:44.000000000 +0200
16 @@ -84,7 +84,7 @@ void Font::drawInt(SDL_Surface *screen,
17 destR.w = charWidth;
18 destR.h = charHeight;
20 - unsigned int charsetpos = charset.find( (char)((val % 10) + '0') );
21 + string::size_type charsetpos = charset.find( (char)((val % 10) + '0') );
22 if (charsetpos != string::npos ) {
23 srcR.x = charsetpos * charWidth;
24 } else {
25 @@ -127,7 +127,7 @@ void Font::drawStr(SDL_Surface *screen,
26 SDL_Rect srcR;
28 int x = 0;
29 - unsigned int charsetpos;
30 + string::size_type charsetpos;
31 for(unsigned int i=0; i < text.size(); ++i) {
32 x = 0;
33 charsetpos = charset.find(text[i]);