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

Function DrawBlood

Source/quests.cpp:490–514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

488}
489
490void DrawBlood(int x, int y)
491{
492 int rw, rh;
493 int i, j;
494 BYTE *sp, *setp;
495
496 setp = LoadFileInMem("Levels\\L2Data\\Blood2.DUN", NULL);
497 rw = *setp;
498 sp = setp + 2;
499 rh = *sp;
500 sp += 2;
501 setpc_x = x;
502 setpc_y = y;
503 setpc_w = rw;
504 setpc_h = rh;
505 for (j = 0; j < rh; j++) {
506 for (i = 0; i < rw; i++) {
507 if (*sp != 0) {
508 dungeon[x + i][y + j] = *sp;
509 }
510 sp += 2;
511 }
512 }
513 mem_free_dbg(setp);
514}
515
516void DRLG_CheckQuests(int x, int y)
517{

Callers 1

DRLG_CheckQuestsFunction · 0.85

Calls 2

LoadFileInMemFunction · 0.85
mem_free_dbgFunction · 0.85

Tested by

no test coverage detected