Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10108 in orxonox.OLD for trunk


Ignore:
Timestamp:
Dec 19, 2006, 10:48:41 PM (18 years ago)
Author:
rennerc
Message:

spectator in singleplayer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/spectator.cc

    r9869 r10108  
    2525ObjectListDefinitionID(Spectator, CL_SPECTATOR);
    2626CREATE_FACTORY(Spectator);
     27
     28
     29
     30#include "state.h"
    2731
    2832
     
    161165  Playable::tick( time );
    162166
    163   if( ( xMouse != 0 || yMouse != 0 ) && this->getOwner() == SharedNetworkData::getInstance()->getHostID() )
     167  if( ( xMouse != 0 || yMouse != 0 ) && ( !State::isOnline() || this->getOwner() == SharedNetworkData::getInstance()->getHostID() ) )
    164168  {
    165169    xMouse *= time / 10;
Note: See TracChangeset for help on using the changeset viewer.