MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / StoreESC

Function StoreESC

Source/stores.cpp:2471–2545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2469}
2470
2471void StoreESC()
2472{
2473 if (qtextflag) {
2474 qtextflag = false;
2475 if (leveltype == DTYPE_TOWN)
2476 stream_stop();
2477 return;
2478 }
2479
2480 switch (stextflag) {
2481 case TalkID::Smith:
2482 case TalkID::Witch:
2483 case TalkID::Boy:
2484 case TalkID::BoyBuy:
2485 case TalkID::Healer:
2486 case TalkID::Storyteller:
2487 case TalkID::Tavern:
2488 case TalkID::Drunk:
2489 case TalkID::Barmaid:
2490 stextflag = TalkID::None;
2491 break;
2492 case TalkID::Gossip:
2493 StartStore(stextshold);
2494 stextsel = stextlhold;
2495 break;
2496 case TalkID::SmithBuy:
2497 StartStore(TalkID::Smith);
2498 stextsel = 12;
2499 break;
2500 case TalkID::SmithPremiumBuy:
2501 StartStore(TalkID::Smith);
2502 stextsel = 14;
2503 break;
2504 case TalkID::SmithSell:
2505 StartStore(TalkID::Smith);
2506 stextsel = 16;
2507 break;
2508 case TalkID::SmithRepair:
2509 StartStore(TalkID::Smith);
2510 stextsel = 18;
2511 break;
2512 case TalkID::WitchBuy:
2513 StartStore(TalkID::Witch);
2514 stextsel = 14;
2515 break;
2516 case TalkID::WitchSell:
2517 StartStore(TalkID::Witch);
2518 stextsel = 16;
2519 break;
2520 case TalkID::WitchRecharge:
2521 StartStore(TalkID::Witch);
2522 stextsel = 18;
2523 break;
2524 case TalkID::HealerBuy:
2525 StartStore(TalkID::Healer);
2526 stextsel = 14;
2527 break;
2528 case TalkID::StorytellerIdentify:

Callers 3

StartStoreFunction · 0.85
HandleMouseButtonDownFunction · 0.85
PressEscKeyFunction · 0.85

Calls 2

StartStoreFunction · 0.85
stream_stopFunction · 0.70

Tested by

no test coverage detected