Changeset 2062 for code/branches/objecthierarchy/src/orxonox/objects
- Timestamp:
- Oct 29, 2008, 5:19:02 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/objects/worldentities/ControllableEntity.cc
r2048 r2062 163 163 if (!Core::isMaster()) 164 164 { 165 this->client_overwrite_ = this->server_overwrite_; 165 166 COUT(0) << "CE: bidirectional synchronization" << std::endl; 166 167 this->setObjectMode(network::direction::bidirectional); … … 248 249 { 249 250 REGISTERSTRING(this->cameraPositionTemplate_, network::direction::toclient); 251 252 253 REGISTERDATA(this->client_overwrite_, network::direction::toserver); 254 REGISTERDATA(this->server_overwrite_, network::direction::toclient, new network::NetworkCallback<ControllableEntity>(this, &ControllableEntity::processOverwrite)); 250 255 251 256 REGISTERDATA(this->server_position_, network::direction::toclient, new network::NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerPosition)); … … 253 258 REGISTERDATA(this->server_orientation_, network::direction::toclient, new network::NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerOrientation)); 254 259 255 REGISTERDATA(this->server_overwrite_, network::direction::toclient, new network::NetworkCallback<ControllableEntity>(this, &ControllableEntity::processOverwrite));256 260 257 261 REGISTERDATA(this->client_position_, network::direction::toserver, new network::NetworkCallback<ControllableEntity>(this, &ControllableEntity::processClientPosition)); … … 259 263 REGISTERDATA(this->client_orientation_, network::direction::toserver, new network::NetworkCallback<ControllableEntity>(this, &ControllableEntity::processClientOrientation)); 260 264 261 REGISTERDATA(this->client_overwrite_, network::direction::toserver);262 265 263 266 REGISTERDATA(this->playerID_, network::direction::toclient, new network::NetworkCallback<ControllableEntity>(this, &ControllableEntity::networkcallback_changedplayerID)); … … 302 305 this->server_position_ = this->client_position_; 303 306 } 307 else 308 COUT(2) << "callback: not setting client position" << endl; 304 309 } 305 310 … … 453 458 else if (this->bControlled_) 454 459 { 455 this->node_->lookAt(target, relativeTo, localDirectionVector);460 // this->node_->lookAt(target, relativeTo, localDirectionVector); 456 461 this->client_orientation_ = this->node_->getOrientation(); 457 462 }
Note: See TracChangeset
for help on using the changeset viewer.