Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8215


Ignore:
Timestamp:
Apr 9, 2011, 7:07:17 PM (14 years ago)
Author:
dafrick
Message:

Bugfix, so that orxonox will start in modes that don't show any graphics, e.g. dedicated or masterserver mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/core/Game.cc

    r8079 r8215  
    209209
    210210            // Limit frame rate
    211             static bool hasVSync = GraphicsManager::getInstance().hasVSyncEnabled(); // can be static since changes of VSync currently require a restart
    212             if (this->fpsLimit_ > 0 && !hasVSync)
    213                 this->updateFPSLimiter();
     211            if(GameMode::showsGraphics())
     212            {
     213                static bool hasVSync = GraphicsManager::getInstance().hasVSyncEnabled(); // can be static since changes of VSync currently require a restart
     214                if (this->fpsLimit_ > 0 && !hasVSync)
     215                    this->updateFPSLimiter();
     216            }
     217            else
     218            {
     219                if (this->fpsLimit_ > 0)
     220                    this->updateFPSLimiter();
     221            }
    214222        }
    215223
Note: See TracChangeset for help on using the changeset viewer.