corrected hacked unit behaviour

This commit is contained in:
devZoGok
2024-02-17 12:55:52 +02:00
parent 5c3c63a622
commit b9071536d6
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -211,5 +211,7 @@ namespace battleship{
oldPlayerUnits.erase(oldPlayerUnits.begin() + oldId);
newPlayer->addUnit(unit);
unit->setPlayer(newPlayer);
unit->halt();
}
}
+1
View File
@@ -39,6 +39,7 @@ namespace battleship{
inline float getHeight() {return height;}
inline float getLength() {return length;}
inline vb01::Model* getModel() {return model;}
inline void setPlayer(Player *pl){player = pl;}
inline Player* getPlayer(){return player;}
inline void toggleDebugging(bool d){this->debugging=d;}
inline vb01::Vector3 getDirVec() {return dirVec;}