//return 1111111111111111;
}
-int Game::DrawGLScene(GLvoid)
+int Game::DrawGLScene(void)
{
static float texcoordwidth,texcoordheight;
static float texviewwidth, texviewheight;
}
if(lastcheck>.5||oldmainmenu!=mainmenu){
if(mainmenu==5){
- // ifstream ipstream(":Data:Campaigns:main.txt");
- ifstream ipstream("./Data/Campaigns/main.txt");
+ ifstream ipstream(ConvertFileName(":Data:Campaigns:main.txt"));
//campaignnumlevels=0;
//accountcampaignchoicesmade[accountactive]=0;
ipstream.ignore(256,':');
//glFlush();
if(drawmode!=motionblurmode||mainmenu){
+ #if !USE_SDL
+ // this prevents menus from rendering if you hit ESC during
+ // motion blur sequences...maybe SDL is buffering differently?
if(drawmode!=motionblurmode)
swap_gl_buffers();
+ #else
+ swap_gl_buffers();
+ #endif
}
//myassert(glGetError() == GL_NO_ERROR);