- Timestamp:
- Apr 13, 2005, 5:51:48 PM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/coord/p_node.cc
r3729 r3799 29 29 #include "null_parent.h" 30 30 31 #ifdef __unix__ 32 #include <glib-2.0/glib/gmacros.h> 33 #endif 31 34 32 35 //#include "vector.h" … … 48 51 np->addChild(this); 49 52 } 53 50 54 51 55 … … 60 64 61 65 *this->absCoordinate = *absCoordinate; 62 if (parent != NULL) 66 #ifdef __unix__ 67 if ( G_UNLIKELY(parent != NULL)) 68 #else 69 if ( parent != NULL) 70 #endif 63 71 { 64 72 *this->relCoordinate = *this->absCoordinate - parent->getAbsCoor (); … … 244 252 void PNode::shiftCoor (Vector* shift) 245 253 { 254 #ifdef __unix__ 255 if( G_UNLIKELY(this->bAbsCoorChanged)) 256 #else 246 257 if( this->bAbsCoorChanged) 258 #endif 247 259 { 248 260 *this->absCoordinate = *this->absCoordinate + *shift; … … 279 291 void PNode::shiftCoor (Vector shift) 280 292 { 293 #ifdef __unix__ 294 if( G_UNLIKELY(this->bAbsCoorChanged)) 295 #else 281 296 if( this->bAbsCoorChanged) 297 #endif 282 298 { 283 299 *this->absCoordinate = *this->absCoordinate + shift; … … 421 437 float PNode::getSpeed() 422 438 { 439 #ifdef __unix__ 440 if( G_UNLIKELY(this->time == 0)) 441 #else 423 442 if(this->time == 0) 443 #endif 424 444 return 1000; 425 445 Vector diff; -
orxonox/trunk/src/world_entities/world_entity.h
r3658 r3799 27 27 28 28 29 30 31 29 //void setCollision (CollisionCluster* newhull); 32 30
Note: See TracChangeset
for help on using the changeset viewer.