Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 27, 2008, 10:56:51 PM (16 years ago)
Author:
rgrieder
Message:
  • Added support for dedicated server. Could not network test it yet, client still segfaults me.
  • Also kicked GraphicsEngine::levelSceneManager_, there are only the statistic methods left.
  • GSDedicated also derives from GSLevel, but GSLevel is not anymore a real GameState.
  • CameraHandler and LevelManager get created in GSLevel now.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/orxonox/tools/Mesh.cc

    r2019 r2023  
    3535
    3636#include "core/Core.h"
    37 #include "GraphicsEngine.h"
    3837#include "util/Convert.h"
    3938#include "util/String.h"
     
    6463            this->scenemanager_->destroyEntity(this->entity_);
    6564
    66         try
     65        if (Core::showsGraphics())
    6766        {
    68             this->entity_ = this->scenemanager_->createEntity("Mesh" + convertToString(Mesh::meshCounter_s++), meshsource);
    69             this->entity_->setCastShadows(this->bCastShadows_);
    70         }
    71         catch (...)
    72         {
    73             COUT(1) << "Error: Couln't load mesh \"" << meshsource << "\"" << std::endl;
     67            try
     68            {
     69                this->entity_ = this->scenemanager_->createEntity("Mesh" + convertToString(Mesh::meshCounter_s++), meshsource);
     70                this->entity_->setCastShadows(this->bCastShadows_);
     71            }
     72            catch (...)
     73            {
     74                COUT(1) << "Error: Couln't load mesh \"" << meshsource << "\"" << std::endl;
     75            }
    7476        }
    7577    }
Note: See TracChangeset for help on using the changeset viewer.