//if(1-((float)i)/10-(1-selectedlong[j])>0){
glMatrixMode(GL_MODELVIEW); // Select The Modelview Matrix
glPushMatrix();
- if(mainmenu!=7||j!=0||!entername)text.glPrint(startx[j],starty[j],menustring[j],0,1,640,480);
+ if(mainmenu!=7||j!=0||!entername)
+ text.glPrint(startx[j],starty[j],menustring[j],0,1,640,480);
else
{
if(displayblink){
multiplier=0;
}
-
//glFlush();
if ( side == stereoRight || side == stereoCenter ) {
if(drawmode!=motionblurmode||mainmenu){
extern int environment;
extern float texscale;
extern Terrain terrain;
-extern OPENAL_SAMPLE *samp[100];
+extern OPENAL_SAMPLE *samp[100];
extern int channels[100];
extern Sprites sprites;
extern int kTextureSize;
static void ch_type(Game *game, const char *args)
{
int i, n = sizeof(editortypenames) / sizeof(editortypenames[0]);
- for (i = 0; i < n; i++)
- if (stripfx(args, editortypenames[i]))
- {
- editoractive = i;
- break;
- }
+ for (i = 0; i < n; i++)
+ if (stripfx(args, editortypenames[i])) {
+ editoractive = i;
+ break;
+ }
}
static void ch_path(Game *game, const char *args)
{
int i, n = sizeof(pathtypenames) / sizeof(pathtypenames[0]);
for (i = 0; i < n; i++)
- if (stripfx(args, pathtypenames[i]))
- {
- editorpathtype = i;
- break;
- }
+ if (stripfx(args, pathtypenames[i])) {
+ editorpathtype = i;
+ break;
+ }
}
static void ch_hs(Game *game, const char *args)
}
}
-
-
/********************> Tick() <*****/
extern void ScreenShot(const char * fname);
void Screenshot (void)
StereoMode stereomode = stereoNone;
StereoMode newstereomode = stereoNone;
float stereoseparation = 0.05;
-bool stereoreverse = false;
\ No newline at end of file
+bool stereoreverse = false;
deltaTime /= 1000.0;
multiplier=deltaTime;
- if(multiplier<.001)multiplier=.001;
- if(multiplier>10)multiplier=10;
- if(update)frametime = currTime; // reset for next time interval
+ if(multiplier<.001) multiplier=.001;
+ if(multiplier>10) multiplier=10;
+ if(update) frametime = currTime; // reset for next time interval
deltaTime = (float) AbsoluteDeltaToDuration (currTime, time);