| 483 | } |
| 484 | |
| 485 | void check_hide_entities() |
| 486 | { |
| 487 | bool mgrNotNull = globals.cmgr; |
| 488 | if (mgrNotNull == ents_hidden) |
| 489 | { |
| 490 | return; |
| 491 | } |
| 492 | ents_hidden = mgrNotNull; |
| 493 | |
| 494 | zScene* scene = globals.sceneCur; |
| 495 | zEnt** it = scene->ents; |
| 496 | zEnt** end = &it[scene->num_ents]; |
| 497 | if (mgrNotNull) |
| 498 | { |
| 499 | while (it != end) |
| 500 | { |
| 501 | zEnt* ent = *it; |
| 502 | if (!(ent->baseFlags & 8) && ent->baseFlags & 0x20) |
| 503 | { |
| 504 | ent->flags = ent->flags | 0x80; |
| 505 | } |
| 506 | it++; |
| 507 | } |
| 508 | return; |
| 509 | } |
| 510 | |
| 511 | while (it != end) |
| 512 | { |
| 513 | zEnt* ent = *it; |
| 514 | if (ent->baseFlags & 0x20) |
| 515 | { |
| 516 | ent->flags = ent->flags & 0x7f; |
| 517 | } |
| 518 | it++; |
| 519 | } |
| 520 | } |
no outgoing calls
no test coverage detected