Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 1, 2008, 10:20:24 PM (16 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/tools/Mesh.cc

    r1653 r1694  
    3131
    3232#include <sstream>
    33 
    3433#include <OgreSceneManager.h>
    35 
    3634#include "GraphicsEngine.h"
     35#include "Settings.h"
    3736
    3837namespace orxonox
     
    4948        std::ostringstream name;
    5049        name << (Mesh::meshCounter_s++);
    51         this->entity_ = GraphicsEngine::getInstance().getLevelSceneManager()->createEntity("Mesh" + name.str(), file);
     50        if (Settings::showsGraphics())
     51            this->entity_ = GraphicsEngine::getInstance().getLevelSceneManager()->createEntity("Mesh" + name.str(), file);
    5252    }
    5353
    5454    Mesh::~Mesh()
    5555    {
    56         if (this->entity_)
     56        if (this->entity_ && Settings::showsGraphics())
    5757            GraphicsEngine::getInstance().getLevelSceneManager()->destroyEntity(this->entity_);
    5858    }
Note: See TracChangeset for help on using the changeset viewer.