Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5742


Ignore:
Timestamp:
Sep 6, 2009, 5:03:30 PM (15 years ago)
Author:
scheusso
Message:

fixed a small bug which caused object id inconsistency on clients

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/network/synchronisable/Synchronisable.cc

    r5738 r5742  
    3333#include <cstdlib>
    3434#include "core/CoreIncludes.h"
     35#include "core/GameMode.h"
    3536#include "core/BaseObject.h"
    3637#include "network/Host.h"
     
    5253    static uint32_t idCounter=0;
    5354    objectMode_=0x1; // by default do not send data to server
    54     if ( !Host::running() || ( Host::running() && Host::isServer() ) )
     55    if ( GameMode::isMaster() || ( Host::running() && Host::isServer() ) )
    5556    {
    5657      this->objectID = idCounter++; //this is only needed when running a server
Note: See TracChangeset for help on using the changeset viewer.