- Timestamp:
- Apr 21, 2016, 3:37:28 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/tgidronFS16/src/modules/hover/HoverShip.cc
r11151 r11171 33 33 #include "core/CoreIncludes.h" 34 34 #include "core/XMLPort.h" 35 #include "Hover.h" 35 36 //#include "NewHumanController.h" 36 37 … … 122 123 } 123 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 } 124 141 }
Note: See TracChangeset
for help on using the changeset viewer.