mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
updating vehicle stats upon reinit
This commit is contained in:
@@ -94,6 +94,11 @@ namespace battleship{
|
||||
garrisonCategory = unitTable["garrisonCategory"];
|
||||
}
|
||||
|
||||
void Vehicle::reinit(){
|
||||
Unit::reinit();
|
||||
initProperties();
|
||||
}
|
||||
|
||||
void Vehicle::navigate(float destOffset){
|
||||
Vector3 hypVec = (pathPoints[0] - pos);
|
||||
float hypAngle = hypVec.norm().getAngleBetween(upVec) - PI / 2;
|
||||
|
||||
Reference in New Issue
Block a user