MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / FootpathNeighbourListRemove

Function FootpathNeighbourListRemove

src/openrct2/world/Footpath.cpp:348–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346 }
347
348 static void FootpathNeighbourListRemove(FootpathNeighbourList* neighbourList, size_t index)
349 {
350 Guard::ArgumentInRange<size_t>(index, 0, neighbourList->count - 1);
351 int32_t itemsRemaining = static_cast<int32_t>(neighbourList->count - index) - 1;
352 if (itemsRemaining > 0)
353 {
354 memmove(&neighbourList->items[index], &neighbourList->items[index + 1], sizeof(FootpathNeighbour) * itemsRemaining);
355 }
356 neighbourList->count--;
357 }
358
359 static void FoopathNeighbourListSort(FootpathNeighbourList* neighbourList)
360 {

Callers 1

FootpathConnectEdgesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected