- Timestamp:
- Nov 7, 2018, 10:14:37 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxoKart_HS18/src/modules/orxokart/TimeHUD.cc
r12057 r12074 35 35 #include "core/CoreIncludes.h" 36 36 #include "util/Convert.h" 37 #include " Hover.h"37 #include "OrxoKart.h" 38 38 39 39 namespace orxonox … … 47 47 this->time_ = 0.0f; 48 48 this->running_ = false; 49 this-> hoverGame_ = nullptr;49 this->orxokartGame_ = nullptr; 50 50 setRunning(true); 51 51 } … … 79 79 this->time_ += dt; 80 80 } 81 if (this-> hoverGame_)81 if (this->orxokartGame_) 82 82 { 83 83 this->setCaption(getTimeString(this->time_)); 84 if (this->hoverGame_->getNumberOfFlags() == 0)85 setRunning(false);84 //if (this->orxokartGame_->getNumberOfFlags() == 0) 85 // setRunning(false); 86 86 } 87 87 … … 94 94 if (this->getOwner() && this->getOwner()->getGametype()) 95 95 { 96 this-> hoverGame_ = orxonox_cast<Hover*>(this->getOwner()->getGametype());96 this->orxokartGame_ = orxonox_cast<OrxoKart*>(this->getOwner()->getGametype()); 97 97 } 98 98 else 99 99 { 100 this-> hoverGame_ = nullptr;100 this->orxokartGame_ = nullptr; 101 101 } 102 102 }
Note: See TracChangeset
for help on using the changeset viewer.