summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sdl-test/SDL_tuto/TestParserLemmingsLVL/fonctions_non_integrees.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sdl-test/SDL_tuto/TestParserLemmingsLVL/fonctions_non_integrees.c b/sdl-test/SDL_tuto/TestParserLemmingsLVL/fonctions_non_integrees.c
index 4a1f7c1..6a2a328 100644
--- a/sdl-test/SDL_tuto/TestParserLemmingsLVL/fonctions_non_integrees.c
+++ b/sdl-test/SDL_tuto/TestParserLemmingsLVL/fonctions_non_integrees.c
@@ -1998,6 +1998,7 @@ int stateLemming(struct gameInit *gInit){
if(tx>=pTerrain->w){break;}
if(tx>=LEVEL_WIDTH) {break;}
+//FIXME : le bloc suivant ne dépends pas de x et y !
overwrite = ((k->data.pt->modif & 8) == 8)? 0 : 1;
remove = ((k->data.pt->modif & 2) == 2)? 1 : 0;
if(k->data.pt->modif == 15){
@@ -2014,6 +2015,7 @@ int stateLemming(struct gameInit *gInit){
}
paint=0;
if(!overwrite){
+ //FIXME : What the hell avec deux fois ce get_pixel ?!?
if((get_pixel32(tx,ty,pStencil)==ccc_error)){return 67;}
// don't overwrite -> only paint if background is transparent
if(((get_pixel32(tx,ty,pStencil)>>24) & 0xff ) == 0)