Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 9, 2009, 6:46:54 PM (15 years ago)
Author:
rgrieder
Message:

Reapplied some of the changes that got reverted in the last commit (including two fixes).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/orxonox/graphics/Camera.cc

    r5924 r5925  
    3838#include "core/CoreIncludes.h"
    3939#include "core/ConfigValueIncludes.h"
     40#include "core/GameMode.h"
    4041#include "core/GUIManager.h"
    4142#include "Scene.h"
     
    5051        RegisterObject(Camera);
    5152
     53        if (!GameMode::showsGraphics())
     54            ThrowException(AbortLoading, "Can't create Camera, no graphics.");
    5255        if (!this->getScene())
    5356            ThrowException(AbortLoading, "Can't create Camera, no scene.");
     
    7679        if (this->isInitialized())
    7780        {
    78             if( GUIManager::getInstance().getCamera() == this->camera_ )
    79                 GUIManager::getInstance().setCamera( NULL );
     81            if (GUIManager::getInstance().getCamera() == this->camera_)
     82                GUIManager::getInstance().setCamera(NULL);
    8083            this->releaseFocus();
    8184
Note: See TracChangeset for help on using the changeset viewer.