diff options
author | Damien Appert <dappert> | 2010-11-18 11:34:12 +0000 |
---|---|---|
committer | Damien Appert <dappert> | 2010-11-18 11:34:12 +0000 |
commit | 6d502f5ef7af275d98596059e3c9446929a04163 (patch) | |
tree | 7cb71e1444177219f9d345b6968194ad836524dc /sdl-test | |
parent | 3d1b9d1dce722e9aa7a77ebaf84b19ffc682924c (diff) | |
download | 2010-netlemmings-6d502f5ef7af275d98596059e3c9446929a04163.tar.gz 2010-netlemmings-6d502f5ef7af275d98596059e3c9446929a04163.tar.bz2 2010-netlemmings-6d502f5ef7af275d98596059e3c9446929a04163.zip |
mieux ça compil ... dsl pour le commit précèdant
git-svn-id: file:///var/svn/2010-netlemmings/trunk@155 077b3477-7977-48bd-8428-443f22f7bfda
Diffstat (limited to 'sdl-test')
-rw-r--r-- | sdl-test/SDL_tuto/TestParserLemmingsLVL/fonctions_non_integrees.c | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/sdl-test/SDL_tuto/TestParserLemmingsLVL/fonctions_non_integrees.c b/sdl-test/SDL_tuto/TestParserLemmingsLVL/fonctions_non_integrees.c index b4563b7..5b66336 100644 --- a/sdl-test/SDL_tuto/TestParserLemmingsLVL/fonctions_non_integrees.c +++ b/sdl-test/SDL_tuto/TestParserLemmingsLVL/fonctions_non_integrees.c @@ -991,7 +991,7 @@ int stateLemming(struct gameInit *gInit){ to.w=x+s->w; to.h=y+s->h; - if((err=paint_manip(s,from,pTerrain,to,bgColor,ccc_lemming,17,pStencilixe))!=0){ + if((err=paint_manip(s,from,pTerrain,to,bgColor,ccc_lemming,17,pStencilFixe))!=0){ return err; } if((err=paint_manip(s,from,pStencilFixe,to,ccc_bgStencil,ccc_lemming,18,NULL))!=0){ @@ -2249,23 +2249,27 @@ int stateLemming(struct gameInit *gInit){ //-DEBUG-printf("paint_manip(), from.x==%4i, from.y==%4i, from.h==%4i, from.w==%4i, from to.x==%4i, to.y==%4i\n", from.x, from.y, from.h, from.w, to.x, to.y); if(from.y<0 || from.y > spr->h) { - //-DEBUG-printf("simple y\n"); - return 45; + //-DEBUG- + printf("paint_manip(1), from.x==%4i, FROM.Y==%4i, from.h==%4i, from.w==%4i, from to.x==%4i, to.y==%4i\n", from.x, from.y, from.h, from.w, to.x, to.y); + return 0; } if(from.x<0 || from.x > spr->w) { - //-DEBUG-printf("simple x\n"); - return 46; + //-DEBUG- + printf("paint_manip(2), FROM.X==%4i, from.y==%4i, from.h==%4i, from.w==%4i, from to.x==%4i, to.y==%4i\n", from.x, from.y, from.h, from.w, to.x, to.y); + return 0; } if(to.y<0 || to.y > t->h) { - //-DEBUG-printf("simple y2\n"); - return 91; + //-DEBUG- + printf("paint_manip(3), from.x==%4i, from.y==%4i, from.h==%4i, from.w==%4i, from to.x==%4i, TO.Y==%4i\n", from.x, from.y, from.h, from.w, to.x, to.y); + return 0; } if(to.x<0 || to.x > t->w) { - //-DEBUG-printf("simple x2\n"); - return 92; + //-DEBUG- + printf("paint_manip(4), from.x==%4i, from.y==%4i, from.h==%4i, from.w==%4i, from TO.X==%4i, to.y==%4i\n", from.x, from.y, from.h, from.w, to.x, to.y); + return 0; } if(from.y+from.h > spr->h) { |