Changeset 11493 for code/trunk/src/modules/hover/HoverShip.cc
- Timestamp:
- Oct 16, 2017, 4:07:37 PM (7 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/tgidronFS16 (added) merged: 11140,11151,11163,11168-11169,11171,11177,11182,11184,11192,11196,11198,11201
- Property svn:mergeinfo changed
-
code/trunk/src/modules/hover/HoverShip.cc
r11041 r11493 33 33 #include "core/CoreIncludes.h" 34 34 #include "core/XMLPort.h" 35 #include "Hover.h" 36 //#include "NewHumanController.h" 35 37 36 38 #include <BulletCollision/NarrowPhaseCollision/btManifoldPoint.h> … … 112 114 if (bBoost && this->isFloor_) 113 115 { 116 114 117 this->setVelocity( 115 118 this->getVelocity().x, … … 120 123 } 121 124 } 125 126 Hover* HoverShip::getGame() 127 { 128 if (game == nullptr) 129 { 130 for (Hover* hover : ObjectList<Hover>()) 131 game = hover; 132 } 133 return game; 134 } 135 136 void HoverShip::death() 137 { 138 getGame()->costLife(); 139 SpaceShip::death(); 140 } 122 141 }
Note: See TracChangeset
for help on using the changeset viewer.