ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-3.0/src/primitives/StuntDouble.hpp
(Generate patch)

Comparing branches/new_design/OOPSE-3.0/src/primitives/StuntDouble.hpp (file contents):
Revision 1843 by tim, Fri Dec 3 21:30:30 2004 UTC vs.
Revision 1844 by tim, Fri Dec 3 22:36:06 2004 UTC

# Line 179 | Line 179 | namespace oopse{
179           * @param pos  new position
180           */        
181          void setPos(const Vector3d& pos) {
182 <            ((snapshotMan_->getCurrentSnapshot())->*storage_).position[localIndex_] = pos;
182 >            DataStorage&  data = snapshotMan_->getCurrentSnapshot()->*storage_;
183 >            data.position[localIndex_] = pos;
184 >            //((snapshotMan_->getCurrentSnapshot())->*storage_).position[localIndex_] = pos;
185          }
186  
187         /**
# Line 189 | Line 191 | namespace oopse{
191           * @see #getPos
192           */        
193          void setPos(const Vector3d& pos, int snapshotNo) {
194 +
195              ((snapshotMan_->getSnapshot(snapshotNo))->*storage_).position[localIndex_] = pos;
196 +
197          }
198        
199         /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines