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

Function DrawAutomapText

Source/automap.cpp:547–568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

545}
546
547void DrawAutomapText()
548{
549 char desc[256];
550 int nextline = 20;
551
552 if (gbMaxPlayers > 1) {
553 strcat(strcpy(desc, "game: "), szPlayerName);
554 PrintGameStr(8, 20, desc, COL_GOLD);
555 nextline = 35;
556 if (szPlayerDescript[0]) {
557 strcat(strcpy(desc, "password: "), szPlayerDescript);
558 PrintGameStr(8, 35, desc, COL_GOLD);
559 nextline = 50;
560 }
561 }
562 if (setlevel)
563 PrintGameStr(8, nextline, quest_level_names[(BYTE)setlvlnum], COL_GOLD);
564 else if (currlevel) {
565 sprintf(desc, "Level: %i", currlevel);
566 PrintGameStr(8, nextline, desc, COL_GOLD);
567 }
568}
569
570void SetAutomapView(int x, int y)
571{

Callers 1

DrawAutomapFunction · 0.85

Calls 1

PrintGameStrFunction · 0.85

Tested by

no test coverage detected