Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 1, 2008, 10:20:24 PM (17 years ago)
Author:
rgrieder
Message:

Added Dedicated game state (name: "dedicated", class: GSDedicated).
It doesn't work at all yet, mainly because of our very poorly designed /objects folder. I tried adding a few "if (Settings::showsGraphics())", but I ran into some serious issues.
I will simply leave this topic up to an eager orxonox developer who wants a dedicated server :D There is A LOT of work to be done…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/orxonox/objects/Skybox.cc

    r1653 r1694  
    3939#include "core/Debug.h"
    4040#include "core/XMLPort.h"
     41#include "Settings.h"
    4142
    4243namespace orxonox
     
    5657    void Skybox::setSkybox(const std::string& skyboxname)
    5758    {
    58         GraphicsEngine::getInstance().getLevelSceneManager()->setSkyBox(true, skyboxname);
     59        if (Settings::showsGraphics())
     60            GraphicsEngine::getInstance().getLevelSceneManager()->setSkyBox(true, skyboxname);
    5961    }
    6062
     
    9294    {
    9395        BaseObject::changedVisibility();
    94         GraphicsEngine::getInstance().getLevelSceneManager()->setSkyBox(this->isVisible(), this->skyboxSrc_);
     96        if (Settings::showsGraphics())
     97            GraphicsEngine::getInstance().getLevelSceneManager()->setSkyBox(this->isVisible(), this->skyboxSrc_);
    9598    }
    9699}
Note: See TracChangeset for help on using the changeset viewer.