Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6466 in orxonox.OLD for branches/network/src


Ignore:
Timestamp:
Jan 11, 2006, 11:09:48 AM (19 years ago)
Author:
patrick
Message:

network: the spaceship spawning bug has been fixed, but no there is no playable connected to the player anymore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/story_entities/multi_player_world_data.cc

    r6464 r6466  
    160160        }
    161161      }
    162       /* clients only spawn the SpaceShip */
    163       /// FIXME it is not said to be a SpaceShip
    164       else if( !strcmp( element->Value(), "SpaceShip"))
     162      else if( !strcmp( element->Value(), "SpaceShip"))       /// FIXME it is not said to be a SpaceShip
    165163      {
    166         BaseObject* created = Factory::fabricate(element);
     164        BaseObject* created = NetworkGameManager::getInstance()->createEntity(element);
    167165        if( created != NULL )
    168166          PRINTF(1)("Created a %s: %s (%8.u)\n", created->getClassName(), created->getName(), created->getLeafClassID());
    169167        else
    170           PRINTF(1)("NetworkWorld: could not create this entity\n");
     168          PRINTF(1)("MultiPlayerWorld: could not create this entity\n");
    171169      }
    172170      element = element->NextSiblingElement();
     
    179177    /* create a Player */
    180178    this->localPlayer = new Player();
    181     Playable* playable;
    182     const std::list<BaseObject*>* playableList = ClassList::getList(CL_PLAYABLE);
    183     assert( playableList != NULL);
    184 
    185     if (playableList != NULL)
    186     {
    187       playable = dynamic_cast<Playable*>(playableList->front());
    188       this->localPlayer->setControllable(playable);
    189     }
     179//     Playable* playable;
     180//     const std::list<BaseObject*>* playableList = ClassList::getList(CL_PLAYABLE);
     181//     assert( playableList != NULL);
     182//
     183//     if (playableList != NULL)
     184//     {
     185//       playable = dynamic_cast<Playable*>(playableList->front());
     186//       this->localPlayer->setControllable(playable);
     187//     }
    190188
    191189    /* init the pnode tree */
Note: See TracChangeset for help on using the changeset viewer.