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

Function DrawBlind

Source/quests.cpp:464–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462}
463
464void DrawBlind(int x, int y)
465{
466 int rw, rh;
467 int i, j;
468 BYTE *sp, *setp;
469
470 setp = LoadFileInMem("Levels\\L2Data\\Blind1.DUN", NULL);
471 rw = *setp;
472 sp = setp + 2;
473 rh = *sp;
474 sp += 2;
475 setpc_x = x;
476 setpc_y = y;
477 setpc_w = rw;
478 setpc_h = rh;
479 for (j = 0; j < rh; j++) {
480 for (i = 0; i < rw; i++) {
481 if (*sp != 0) {
482 pdungeon[x + i][y + j] = *sp;
483 }
484 sp += 2;
485 }
486 }
487 mem_free_dbg(setp);
488}
489
490void DrawBlood(int x, int y)
491{

Callers 1

DRLG_CheckQuestsFunction · 0.85

Calls 2

LoadFileInMemFunction · 0.85
mem_free_dbgFunction · 0.85

Tested by

no test coverage detected