Changeset 3159 for code/branches
- Timestamp:
- Jun 13, 2009, 6:41:05 PM (15 years ago)
- Location:
- code/branches/pch
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pch/cmake/GenerateToluaBindings.cmake
r2710 r3159 48 48 ) 49 49 SOURCE_GROUP("Tolua" FILES ${_tolua_cxxfile} ${_tolua_hfile}) 50 # Disable annoying GCC warnings 51 IF(CMAKE_COMPILER_IS_GNU) 52 SET_SOURCE_FILES_PROPERTIES(${_tolua_cxxfile} PROPERTIES COMPILE_FLAGS "-w") 53 ENDIF() 50 54 51 55 # Create temporary package file -
code/branches/pch/cmake/LibraryConfig.cmake
r2925 r3159 172 172 ##### Boost ##### 173 173 # Expand the next statement if newer boost versions than 1.36.1 are released 174 SET(Boost_ADDITIONAL_VERSIONS 1.37 1.37.0 )174 SET(Boost_ADDITIONAL_VERSIONS 1.37 1.37.0 1.38 1.38.0 1.39 1.39.0) 175 175 # MSVC seems to be the only compiler requiring date_time 176 176 IF(MSVC) -
code/branches/pch/src/core/Game.h
r3154 r3159 41 41 #include <list> 42 42 #include <map> 43 #include <string> 43 44 #include <vector> 44 45 #include <boost/shared_ptr.hpp> -
code/branches/pch/src/core/IRC.h
r3154 r3159 31 31 32 32 #include "CorePrereqs.h" 33 34 #include <string> 33 35 #include "OrxonoxClass.h" 34 36 -
code/branches/pch/src/core/Template.cc
r3154 r3159 42 42 Template::Template(BaseObject* creator) : BaseObject(creator) 43 43 { 44 this->xmlelement_ = new TiXmlElement(""); 45 44 46 RegisterObject(Template); 45 47 46 this->xmlelement_ = new TiXmlElement("");47 48 this->bIsLink_ = false; 48 49 this->bLoadDefaults_ = true; -
code/branches/pch/src/core/XMLPort.h
r3156 r3159 51 51 #include "util/MultiType.h" 52 52 #include "util/OrxAssert.h" 53 #include "Factory.h" 53 54 #include "Identifier.h" 54 55 #include "Executor.h" -
code/branches/pch/src/orxonox/objects/worldentities/WorldEntity.cc
r3149 r3159 633 633 void WorldEntity::lookAt(const Vector3& target, TransformSpace::Enum relativeTo, const Vector3& localDirectionVector) 634 634 { 635 Vector3 origin ;635 Vector3 origin(0, 0, 0); 636 636 switch (relativeTo) 637 637 { … … 660 660 { 661 661 Quaternion savedOrientation(this->getOrientation()); 662 Ogre::Node::TransformSpace ogreRelativeTo ;662 Ogre::Node::TransformSpace ogreRelativeTo = Ogre::Node::TS_LOCAL; 663 663 switch (relativeTo) 664 664 { … … 772 772 break; 773 773 case Kinematic: 774 this->physicalBody_->setCollisionFlags( this->physicalBody_->getCollisionFlags() & !btCollisionObject::CF_STATIC_OBJECT| btCollisionObject::CF_KINEMATIC_OBJECT);774 this->physicalBody_->setCollisionFlags((this->physicalBody_->getCollisionFlags() & !btCollisionObject::CF_STATIC_OBJECT) | btCollisionObject::CF_KINEMATIC_OBJECT); 775 775 break; 776 776 case Static: 777 this->physicalBody_->setCollisionFlags( this->physicalBody_->getCollisionFlags() & !btCollisionObject::CF_KINEMATIC_OBJECT| btCollisionObject::CF_STATIC_OBJECT);777 this->physicalBody_->setCollisionFlags((this->physicalBody_->getCollisionFlags() & !btCollisionObject::CF_KINEMATIC_OBJECT) | btCollisionObject::CF_STATIC_OBJECT); 778 778 break; 779 779 case None: -
code/branches/pch/src/orxonox/objects/worldentities/triggers/Trigger.cc
r3110 r3159 237 237 { 238 238 if (( (this->latestState_ & 2) && this->bStayActive_ && (this->remainingActivations_ <= 0)) 239 || (!(this->latestState_ & 2) ) && (this->remainingActivations_ == 0))239 || (!(this->latestState_ & 2) && (this->remainingActivations_ == 0))) 240 240 return false; 241 241 else -
code/branches/pch/src/util/ExprParser.cc
r3146 r3159 247 247 return 0; 248 248 } 249 else if ( *reading_stream > 47 && *reading_stream < 59|| *reading_stream == 46)249 else if ((*reading_stream > 47 && *reading_stream < 59) || *reading_stream == 46) 250 250 { // number 251 251 value = strtod(reading_stream, const_cast<char**>(&reading_stream)); 252 252 } 253 else if ( *reading_stream > 64 && *reading_stream < 91 || *reading_stream > 96 && *reading_stream < 123|| *reading_stream == 46)253 else if ((*reading_stream > 64 && *reading_stream < 91) || (*reading_stream > 96 && *reading_stream < 123) || *reading_stream == 46) 254 254 { // variable or function 255 255 char* word = new char[256]; … … 384 384 char* word = str; 385 385 int counter = 0; 386 while ( *reading_stream > 47 && *reading_stream < 58 || *reading_stream > 64 && *reading_stream < 91 || *reading_stream > 96 && *reading_stream < 123|| *reading_stream == 46)386 while ((*reading_stream > 47 && *reading_stream < 58) || (*reading_stream > 64 && *reading_stream < 91) || (*reading_stream > 96 && *reading_stream < 123) || *reading_stream == 46) 387 387 { 388 388 *word++ = *reading_stream++; -
code/branches/pch/src/util/SignalHandler.cc
r3146 r3159 209 209 { 210 210 if ( 211 charsFound == 0 && byte == '('||212 charsFound == 1 && byte == 'g'||213 charsFound == 2 && byte == 'd'||214 charsFound == 3 && byte == 'b'||215 charsFound == 4 && byte == ')'||216 charsFound == 5 && byte == ' '211 (charsFound == 0 && byte == '(') || 212 (charsFound == 1 && byte == 'g') || 213 (charsFound == 2 && byte == 'd') || 214 (charsFound == 3 && byte == 'b') || 215 (charsFound == 4 && byte == ')') || 216 (charsFound == 5 && byte == ' ') 217 217 ) 218 218 charsFound++; … … 246 246 247 247 if ( 248 charsFound == 0 && byte == '('||249 charsFound == 1 && byte == 'g'||250 charsFound == 2 && byte == 'd'||251 charsFound == 3 && byte == 'b'||252 charsFound == 4 && byte == ')'||253 charsFound == 5 && byte == ' '248 (charsFound == 0 && byte == '(') || 249 (charsFound == 1 && byte == 'g') || 250 (charsFound == 2 && byte == 'd') || 251 (charsFound == 3 && byte == 'b') || 252 (charsFound == 4 && byte == ')') || 253 (charsFound == 5 && byte == ' ') 254 254 ) 255 255 charsFound++;
Note: See TracChangeset
for help on using the changeset viewer.