MCPcopy Create free account
hub / github.com/SimHacker/micropolis / SetCell

Method SetCell

MicropolisCore/src/CellEngine/src/cellengine.cpp:1551–1566  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1549
1550
1551void CellEngine::SetCell(
1552 int col,
1553 int row,
1554 Byte cell)
1555{
1556 if ((col < 0) ||
1557 (col >= width) ||
1558 (row < 0) ||
1559 (row >= height) ||
1560 (frontMem == NULL)) {
1561 return;
1562 }
1563
1564 frontMem[col + (row * screenRowBytes)] =
1565 cell;
1566}
1567
1568
1569void *CellEngine::GetCellBuffer()

Callers 1

createEngineMethod · 0.45

Calls

no outgoing calls

Tested by 1

createEngineMethod · 0.36