#ifdef USE_GL
-#ifndef HAVE_COCOA
+#if !defined(HAVE_JWZGLES) && !defined(HAVE_COCOA)
# include <GL/glu.h>
#endif
glTranslatef((GLfloat) (thisSproingie->x) + 0.5,
(GLfloat) (thisSproingie->y) + 0.5,
(GLfloat) (thisSproingie->z) - 0.5);
- scale = (GLfloat) (1 << (thisSproingie->frame - BOOM_FRAME));
+ {
+ int boom_scale = thisSproingie->frame - BOOM_FRAME;
+ if (boom_scale >= 31) boom_scale = 31;
+ scale = (GLfloat) (1 << boom_scale);
+ }
glScalef(scale, scale, scale);
if (!si->wireframe) {
if (!si->mono)
CleanupSproingies(int screen)
{
sp_instance *si = &si_list[screen];
+
+ if (! si) return;
+
/*
int t;
if (si->SproingieBoom) {
sp_instance *si;
int t;
+ active_screens++;
+ CleanupSproingies(screen);
+
if (si_list == NULL) {
if ((si_list = (sp_instance *) calloc(numscreens,
sizeof (sp_instance))) == NULL)
}
si = &si_list[screen];
- active_screens++;
- CleanupSproingies(screen);
-
if (mspr < 0)
mspr = 0;
if (mspr >= MAXSPROING)