serial debugging fail
[retrocrawl] / src / sprite.c
index 7b68892..528ce68 100644 (file)
@@ -1,3 +1,4 @@
+#include <stdio.h>
 #include <string.h>
 #include "sprite.h"
 #include "hwregs.h"
@@ -41,6 +42,7 @@ void end_sprites(void)
                reg += 4;
        }
 
+#if 0
        /* sort sprites by increasing start position */
        for(i=0; i<scount; i++) {
                for(j=i+1; j<scount; j++) {
@@ -51,6 +53,7 @@ void end_sprites(void)
                        }
                }
        }
+#endif
 
        /* set sprite positions and populate copperlist to draw
         * hardware sprites
@@ -79,9 +82,10 @@ void end_sprites(void)
                }
                if(nchan_found < s->hwslices) continue;
 
-               if(reuse) {
-                       add_copper(COPPER_VWAIT(sy));
-               }
+//             if(reuse) {
+                       printf("copper wait: %d\n", (int)s->y - 1);
+                       add_copper(COPPER_VWAIT(s->y - 1));
+//             }
 
                for(j=0; j<s->hwslices; j++) {
                        int idx = chan[j] * 2;