if (base.x < scroll_x ||
base.x > scroll_x + screen->w ||
- base.y < 0 ||
base.y > screen->h ||
issolid(base.x + 4, base.y + 2) ||
issolid(base.x, base.y + 2) ||
}
}
- /* Off screen? Kill it! */
- if(base.x < scroll_x - base.width || base.y > screen->h) {
+ /* Away from the screen? Kill it! */
+ if(base.x < scroll_x - OFFSCREEN_DISTANCE) {
+ remove_me();
+ return;
+ }
+ if(base.y > screen->h) {
remove_me();
return;
}