};
static argtype vars[] = {
- {(caddr_t *) &which_engine, "engine", "Engine", DEF_ENGINE, t_String},
- {(caddr_t *) &move, "move", "Move", DEF_WANDER, t_Bool},
- {(caddr_t *) &spin, "spin", "Spin", DEF_SPIN, t_Bool},
- {(caddr_t *) &do_titles, "titles", "Titles", DEF_TITLES, t_Bool},
+ {&which_engine, "engine", "Engine", DEF_ENGINE, t_String},
+ {&move, "move", "Move", DEF_WANDER, t_Bool},
+ {&spin, "spin", "Spin", DEF_SPIN, t_Bool},
+ {&do_titles, "titles", "Titles", DEF_TITLES, t_Bool},
};
ModeSpecOpt engine_opts = {countof(opts), opts, countof(vars), vars, NULL};
/* given a number of cylinders and an included angle, finds matching engine */
int find_engine(const char *name)
{
- int i;
+ unsigned int i;
if (!name || !*name || !strcasecmp (name, "(none)"))
return (random() % countof(engines));
{
int i;
int j;
- const static float crankThick = 0.2;
- const static float crankDiam = 0.3;
+ static const float crankThick = 0.2;
+ static const float crankDiam = 0.3;
i = glGenLists(1);
glNewList(i, GL_COMPILE);
glMatrixMode(GL_MODELVIEW);
glPushMatrix();
{
- int i;
+ unsigned int i;
int x2 = x;
glLoadIdentity();