| 496 | |
| 497 | |
| 498 | void updateShots(const float dt) { |
| 499 | // update other tank's shots |
| 500 | for (int i = 0; i < curMaxPlayers; i++) { |
| 501 | if (remotePlayers[i]) { |
| 502 | remotePlayers[i]->updateShots(dt); |
| 503 | } |
| 504 | } |
| 505 | |
| 506 | // update servers shots |
| 507 | const World* _world = World::getWorld(); |
| 508 | if (_world) { |
| 509 | _world->getWorldWeapons()->updateShots(dt); |
| 510 | } |
| 511 | } |
| 512 | |
| 513 | |
| 514 | void setTankFlags() { |
no test coverage detected