Hi,

I don't know how it was possible, but the following code worked :
***
//---------------------TO REVISE----------------------------//This is a
patch, i donk know how, but the game crash      //without it,   int patch;
//---------------------END REVISE----------------------------
    // Charge les images    nomfich = repertoire+"images.scr";
    res = new CL_ResourceManager(nomfich, false);
    marche.image = CL_Surface::load("marche", res);
    mort.image = CL_Surface::load("mort", res);
    noye.image = CL_Surface::load("noye", res);
***

The problem is that "marche", "mort" and "noye" are all sprite resources and 
not surface resources !

Another problem is that CL_Surface::load doesn't exist anymore ...

I replaced this code with :
***
    CL_ResourceManager res(nomfich, false);
    marche.image = CL_Sprite("marche", &res);
    mort.image = CL_Sprite("mort", &res);
    noye.image = CL_Sprite("noye", &res);
***

Thanks Packo to detect the bug ;-)

Bye, Haypo


Répondre à