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

Function TownCtrlMsg

Source/towners.cpp:390–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388}
389
390void TownCtrlMsg(int i)
391{
392 int p;
393 int dx, dy;
394
395 if (towner[i]._tbtcnt) {
396 p = towner[i]._tVar1;
397 dx = abs(towner[i]._tx - plr[p].WorldX);
398 dy = abs(towner[i]._ty - plr[p].WorldY);
399 if (dx >= 2 || dy >= 2)
400 towner[i]._tbtcnt = 0;
401 if (!towner[i]._tbtcnt) {
402 qtextflag = FALSE;
403 sfx_stop();
404 }
405 }
406}
407
408void TownBlackSmith()
409{

Callers 10

TownBlackSmithFunction · 0.85
TownBarOwnerFunction · 0.85
TownDeadFunction · 0.85
TownHealerFunction · 0.85
TownStoryFunction · 0.85
TownDrunkFunction · 0.85
TownBoyFunction · 0.85
TownWitchFunction · 0.85
TownBarMaidFunction · 0.85
TownCowFunction · 0.85

Calls 1

sfx_stopFunction · 0.85

Tested by

no test coverage detected