MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / Unit_AddToTile

Function Unit_AddToTile

src/unit.c:2547–2552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2545}
2546
2547void Unit_AddToTile(Unit *unit, uint16 packed)
2548{
2549 Map_UnveilTile(packed, Unit_GetHouseID(unit));
2550 Map_MarkTileDirty(packed);
2551 Map_Update(packed, 1, false);
2552}
2553
2554/**
2555 * Get the priority a target structure has for a given unit. The higher the value,

Callers 1

Map_UpdateAroundFunction · 0.85

Calls 4

Map_UnveilTileFunction · 0.85
Unit_GetHouseIDFunction · 0.85
Map_MarkTileDirtyFunction · 0.85
Map_UpdateFunction · 0.85

Tested by

no test coverage detected