MCPcopy Create free account
hub / github.com/NetHack/NetHack / clear_id_mapping

Function clear_id_mapping

src/restore.c:1446–1456  ·  view source on GitHub ↗

Clear all structures for object and monster ID mapping. */

Source from the content-addressed store, hash-verified

1444
1445/* Clear all structures for object and monster ID mapping. */
1446staticfn void
1447clear_id_mapping(void)
1448{
1449 struct bucket *curr;
1450
1451 while ((curr = gi.id_map) != 0) {
1452 gi.id_map = curr->next;
1453 free((genericptr_t) curr);
1454 }
1455 gn.n_ids_mapped = 0;
1456}
1457
1458/* Add a mapping to the ID map. */
1459staticfn void

Callers 1

getlevFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected