| 3052 | } |
| 3053 | |
| 3054 | void Vehicle::setPosition(const Vec3<float> &pos) |
| 3055 | { |
| 3056 | this->position = pos; |
| 3057 | if (!this->tileObject) |
| 3058 | { |
| 3059 | LogError("setPosition called on vehicle with no tile object"); |
| 3060 | } |
| 3061 | else |
| 3062 | { |
| 3063 | this->tileObject->setPosition(pos); |
| 3064 | } |
| 3065 | if (this->shadowObject) |
| 3066 | { |
| 3067 | this->shadowObject->setPosition(pos); |
| 3068 | } |
| 3069 | if (this->smokeDoodad) |
| 3070 | { |
| 3071 | this->smokeDoodad->setPosition(pos + SMOKE_DOODAD_SHIFT); |
| 3072 | } |
| 3073 | } |
| 3074 | |
| 3075 | void Vehicle::setManualFirePosition(const Vec3<float> &pos) |
| 3076 | { |
no outgoing calls
no test coverage detected