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

Function InitQTextMsg

Source/minitext.cpp:58–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void InitQTextMsg(int m)
59{
60 if (alltext[m].scrlltxt) {
61 questlog = FALSE;
62 qtextptr = alltext[m].txtstr;
63 qtextflag = TRUE;
64 qtexty = 500;
65 sgLastScroll = qscroll_spd_tbl[alltext[m].txtspd - 1];
66 if (sgLastScroll <= 0)
67 scrolltexty = 50 / -(sgLastScroll - 1);
68 else
69 scrolltexty = ((sgLastScroll + 1) * 50) / sgLastScroll;
70 qtextSpd = SDL_GetTicks();
71 }
72 PlaySFX(alltext[m].sfxnr);
73}
74
75void DrawQTextBack()
76{

Callers 8

OperateBookLeverFunction · 0.85
OperateSChambBkFunction · 0.85
OperateStoryBookFunction · 0.85
S_TalkEnterFunction · 0.85
QuestlogEnterFunction · 0.85
M_DoTalkFunction · 0.85
TownerTalkFunction · 0.85
TalkToTownerFunction · 0.85

Calls 1

PlaySFXFunction · 0.85

Tested by

no test coverage detected