Группа :: Игры/Аркады
Пакет: Ri-li
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: Ri-li-gcc11.patch
Скачать
Скачать
diff --git a/src/sprite.cc b/src/sprite.cc
index b00d31a..7971c70 100644
--- a/src/sprite.cc
+++ b/src/sprite.cc
@@ -352,7 +352,7 @@ bool Sprite::Load(unsigned char *Buf,long &P)
// Fabrique la surface
Image[i]=SDL_CreateRGBSurface((Dim[i].bpp-3)*SDL_SRCALPHA,Dim[i].L,Dim[i].H,Dim[i].bpp*8,
0xff,0xff00,0xff0000,0xff000000*(Dim[i].bpp-3));
- if(Image[i]<=NULL) {
+ if(Image[i]==NULL) {
cerr <<"Impossible de crИer une Surface SDL!"<<endl;
return false;
}
@@ -486,7 +486,7 @@ bool Sprite::Nouveau(int Lx,int Ly)
// Fabrique la surface
Image[0]=SDL_CreateRGBSurface((Dim[0].bpp-3)*SDL_SRCALPHA,Dim[0].L,Dim[0].H,Dim[0].bpp*8,
0xff,0xff00,0xff0000,0xff000000*(Dim[0].bpp-3));
- if(Image[0]<=NULL) {
+ if(Image[0]==NULL) {
cerr <<"Impossible de crИer une Surface SDL!"<<endl;
return false;
}
diff --git a/src/tableau.cc b/src/tableau.cc
index b125a88..0116da1 100644
--- a/src/tableau.cc
+++ b/src/tableau.cc
@@ -88,7 +88,7 @@ bool Tableau::Save(void)
// Alloue la mИmoire
Buf=new unsigned char [sizeof(s_Tableau)*N+sizeof(int)+1];
- if(Buf<=0) return false;
+ if(Buf==0) return false;
// Charge les tableaux
Buf[0]=N/256;