MCPcopy Create free account
hub / github.com/diasurgical/devilution / L4makeDmt

Function L4makeDmt

Source/drlg_l4.cpp:387–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385}
386
387static void L4makeDmt()
388{
389 int i, j, idx, val, dmtx, dmty;
390
391 for (j = 0, dmty = 1; dmty <= 77; j++, dmty += 2) {
392 for (i = 0, dmtx = 1; dmtx <= 77; i++, dmtx += 2) {
393 val = 8 * L4dungeon[dmtx + 1][dmty + 1]
394 + 4 * L4dungeon[dmtx][dmty + 1]
395 + 2 * L4dungeon[dmtx + 1][dmty]
396 + L4dungeon[dmtx][dmty];
397 idx = L4ConvTbl[val];
398 dungeon[i][j] = idx;
399 }
400 }
401}
402
403static int L4HWallOk(int i, int j)
404{

Callers 1

DRLG_L4Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected