author | ecalot
<ecalot> 2004-08-15 02:13:04 UTC |
committer | ecalot
<ecalot> 2004-08-15 02:13:04 UTC |
parent | c7f01e39628db28356191110ab3dfd7cb22a0916 |
FP/src/res/resources.c | +4 | -2 |
diff --git a/FP/src/res/resources.c b/FP/src/res/resources.c index 443530b..082e09b 100644 --- a/FP/src/res/resources.c +++ b/FP/src/res/resources.c @@ -95,7 +95,7 @@ tData* resLoad(long id) { int total=res_get_part_size(id); int from=res_get_part_from(id); int type=res_get_part_type(id); -printf("type=%d mask=%d total=%d from=%d id=%08x\n",type,mask,total,from,id); +printf("type=%d mask=%d total=%d from=%d\n",type,mask,total,from); switch (type) { case RES_TYPE_LVL: if (total!=2) { @@ -117,14 +117,16 @@ printf("type=%d mask=%d total=%d from=%d id=%08x\n",type,mask,total,from,id); tMemory palette; tImage image; tPalette pal; - +printf("ttest\n"); result=(tData*)malloc(sizeof(tData)); result->frames=total-2; /* drop filename and palette */ result->pFrames=(void**)malloc(result->frames*sizeof(void*)); +printf("sssttest %d %d\n",from,res_list[from] ); if (!mReadBeginDatFile(&numberOfItems,res_file[res_list[from]])) { printf("Fatal Error: resLoad: level file not found!\n"); return NULL; } +printf("ttest\n"); if(!res_getDataById(res_list[from+1],numberOfItems,&palette)) { printf("Fatal Error: resLoad: palette not found!\n"); return NULL;