Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 29, 2008, 12:48:11 AM (16 years ago)
Author:
landauf
Message:

bugs—
network++
endurance—
tiredness++

but it still doesn't work properly
(commit because oli is very impatient)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/orxonox/objects/infos/PlayerInfo.cc

    r2040 r2041  
    7171        REGISTERSTRING(this->name_,                 network::direction::toclient, new network::NetworkCallback<PlayerInfo>(this, &PlayerInfo::changedName));
    7272        REGISTERDATA  (this->controllableEntityID_, network::direction::toclient, new network::NetworkCallback<PlayerInfo>(this, &PlayerInfo::networkcallback_changedcontrollableentityID));
     73        REGISTERDATA  (this->bReadyToSpawn_,        network::direction::toserver);
    7374    }
    7475
     
    127128            this->controllableEntityID_ = network::OBJECTID_UNKNOWN;
    128129        }
    129 
     130COUT(0) << this->getObjectID() << ": PI: start control" << std::endl;
    130131        if (this->controller_)
    131132            this->controller_->setControllableEntity(entity);
    132133    }
    133134
    134     void PlayerInfo::stopControl(ControllableEntity* entity)
     135    void PlayerInfo::stopControl(ControllableEntity* entity, bool callback)
    135136    {
    136137        if (entity && this->controllableEntity_ == entity)
     
    142143                this->controller_->setControllableEntity(0);
    143144
    144             entity->removePlayer();
     145            if (callback)
     146                entity->removePlayer();
    145147        }
    146148    }
Note: See TracChangeset for help on using the changeset viewer.