| 276 | |
| 277 | |
| 278 | void GfxBlockMgr::removeClient(EventClient* ec) { |
| 279 | for (int i = 0; i < (int)BlockIDCount; i++) { |
| 280 | blocks[i]->remove(ec); |
| 281 | } |
| 282 | |
| 283 | // clear the flag blocks |
| 284 | const World* world = World::getWorld(); |
| 285 | if (world != NULL) { |
| 286 | for (int i = 0; i < world->getMaxFlags(); i++) { |
| 287 | ClientFlag& flag = world->getClientFlag(i); |
| 288 | flag.gfxBlock.remove(ec); |
| 289 | } |
| 290 | } |
| 291 | |
| 292 | // clear the players and their shots |
| 293 | iteratePlayers(clearPlayerBlocks, ec, true /*includeWeapons*/); |
| 294 | } |
| 295 | |
| 296 | |
| 297 | //============================================================================// |
nothing calls this directly
no test coverage detected