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

Function L2TileFix

Source/drlg_l2.cpp:994–1017  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

992}
993
994static void L2TileFix()
995{
996 int i, j;
997
998 for (j = 0; j < DMAXY; j++) {
999 for (i = 0; i < DMAXX; i++) {
1000 if (dungeon[i][j] == 1 && dungeon[i][j + 1] == 3) {
1001 dungeon[i][j + 1] = 1;
1002 }
1003 if (dungeon[i][j] == 3 && dungeon[i][j + 1] == 1) {
1004 dungeon[i][j + 1] = 3;
1005 }
1006 if (dungeon[i][j] == 3 && dungeon[i + 1][j] == 7) {
1007 dungeon[i + 1][j] = 3;
1008 }
1009 if (dungeon[i][j] == 2 && dungeon[i + 1][j] == 3) {
1010 dungeon[i + 1][j] = 2;
1011 }
1012 if (dungeon[i][j] == 11 && dungeon[i + 1][j] == 14) {
1013 dungeon[i + 1][j] = 16;
1014 }
1015 }
1016 }
1017}
1018
1019static BOOL DL2_Cont(BOOL x1f, BOOL y1f, BOOL x2f, BOOL y2f)
1020{

Callers 1

DRLG_L2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected