| 1072 | static uint8 sphitdata; |
| 1073 | |
| 1074 | static void CheckSpriteHit(int p) { |
| 1075 | int l = p - 16; |
| 1076 | int x; |
| 1077 | |
| 1078 | if (sphitx == 0x100) return; |
| 1079 | |
| 1080 | for (x = sphitx; x < (sphitx + 8) && x < l; x++) { |
| 1081 | if ((sphitdata & (0x80 >> (x - sphitx))) && !(Plinef[x] & 64) && x < 255) { |
| 1082 | PPU_status |= 0x40; |
| 1083 | sphitx = 0x100; |
| 1084 | break; |
| 1085 | } |
| 1086 | } |
| 1087 | } |
| 1088 | |
| 1089 | //spork the world. Any sprites on this line? Then this will be set to 1. |
| 1090 | //Needed for zapper emulation and *gasp* sprite emulation. |