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

Function DrawLTBanner

Source/quests.cpp:438–462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436}
437
438void DrawLTBanner(int x, int y)
439{
440 int rw, rh;
441 int i, j;
442 BYTE *sp, *setp;
443
444 setp = LoadFileInMem("Levels\\L1Data\\Banner1.DUN", NULL);
445 rw = *setp;
446 sp = setp + 2;
447 rh = *sp;
448 sp += 2;
449 setpc_w = rw;
450 setpc_h = rh;
451 setpc_x = x;
452 setpc_y = y;
453 for (j = 0; j < rh; j++) {
454 for (i = 0; i < rw; i++) {
455 if (*sp != 0) {
456 pdungeon[x + i][y + j] = *sp;
457 }
458 sp += 2;
459 }
460 }
461 mem_free_dbg(setp);
462}
463
464void DrawBlind(int x, int y)
465{

Callers 1

DRLG_CheckQuestsFunction · 0.85

Calls 2

LoadFileInMemFunction · 0.85
mem_free_dbgFunction · 0.85

Tested by

no test coverage detected