fixed nametab.B invalid address, and spr_submit with 0 sprites
[mdlife] / src / sprite.c
index 63305f3..9a6c6e7 100644 (file)
@@ -3,7 +3,7 @@
 #include "vdp.h"
 
 struct hwsprite spr_shadow[MAX_HWSPRITES];
-int spr_count;
+short spr_count;
 
 void spr_begin(void)
 {
@@ -13,7 +13,7 @@ void spr_begin(void)
 
 void spr_add(int x, int y, unsigned int tile, int sprsz)
 {
-       int id;
+       short id;
        struct hwsprite *spr;
 
        if(spr_count >= MAX_HWSPRITES) {