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

Function STextDown

Source/stores.cpp:1663–1698  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1661}
1662
1663void STextDown()
1664{
1665 PlaySFX(IS_TITLEMOV);
1666 if (stextsel == -1) {
1667 return;
1668 }
1669
1670 if (stextscrl) {
1671 if (stextsel == stextdown) {
1672 if (stextsval < stextsmax)
1673 stextsval++;
1674 return;
1675 }
1676
1677 stextsel++;
1678 while (!stext[stextsel]._ssel) {
1679 if (stextsel == 23)
1680 stextsel = 0;
1681 else
1682 stextsel++;
1683 }
1684 return;
1685 }
1686
1687 if (stextsel == 23)
1688 stextsel = 0;
1689 else
1690 stextsel++;
1691
1692 while (!stext[stextsel]._ssel) {
1693 if (stextsel == 23)
1694 stextsel = 0;
1695 else
1696 stextsel++;
1697 }
1698}
1699
1700void STextPrior()
1701{

Callers 2

CheckStoreBtnFunction · 0.85
PressKeyFunction · 0.85

Calls 1

PlaySFXFunction · 0.85

Tested by

no test coverage detected