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

Function STextESC

Source/stores.cpp:1553–1624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1551}
1552
1553void STextESC()
1554{
1555 if (qtextflag) {
1556 qtextflag = FALSE;
1557 if (leveltype == DTYPE_TOWN)
1558 sfx_stop();
1559 } else {
1560 switch (stextflag) {
1561 case STORE_SMITH:
1562 case STORE_WITCH:
1563 case STORE_BOY:
1564 case STORE_BBOY:
1565 case STORE_HEALER:
1566 case STORE_STORY:
1567 case STORE_TAVERN:
1568 case STORE_DRUNK:
1569 case STORE_BARMAID:
1570 stextflag = STORE_NONE;
1571 break;
1572 case STORE_GOSSIP:
1573 StartStore(stextshold);
1574 stextsel = stextlhold;
1575 break;
1576 case STORE_SBUY:
1577 StartStore(STORE_SMITH);
1578 stextsel = 12;
1579 break;
1580 case STORE_SPBUY:
1581 StartStore(STORE_SMITH);
1582 stextsel = 14;
1583 break;
1584 case STORE_SSELL:
1585 StartStore(STORE_SMITH);
1586 stextsel = 16;
1587 break;
1588 case STORE_SREPAIR:
1589 StartStore(STORE_SMITH);
1590 stextsel = 18;
1591 break;
1592 case STORE_WBUY:
1593 StartStore(STORE_WITCH);
1594 stextsel = 14;
1595 break;
1596 case STORE_WSELL:
1597 StartStore(STORE_WITCH);
1598 stextsel = 16;
1599 break;
1600 case STORE_WRECHARGE:
1601 StartStore(STORE_WITCH);
1602 stextsel = 18;
1603 break;
1604 case STORE_HBUY:
1605 StartStore(STORE_HEALER);
1606 stextsel = 16;
1607 break;
1608 case STORE_SIDENTIFY:
1609 StartStore(STORE_STORY);
1610 stextsel = 14;

Callers 1

PressEscKeyFunction · 0.85

Calls 2

sfx_stopFunction · 0.85
StartStoreFunction · 0.85

Tested by

no test coverage detected