Skip to content

Commit 73acc67

Browse files
committed
Exit to None
1 parent d07f2b4 commit 73acc67

3 files changed

Lines changed: 19 additions & 19 deletions

File tree

Source/qol/chatlog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ void ToggleChatLog()
9595
if (ChatLogFlag) {
9696
ChatLogFlag = false;
9797
} else {
98-
ActiveStore = TalkID::Exit;
98+
ActiveStore = TalkID::None;
9999
CloseInventory();
100100
CloseCharPanel();
101101
SpellbookFlag = false;

Source/stores.cpp

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,7 +1307,7 @@ void SmithEnter()
13071307
StartStore(TalkID::SmithRepair);
13081308
break;
13091309
case 20:
1310-
ActiveStore = TalkID::Exit;
1310+
ActiveStore = TalkID::None;
13111311
break;
13121312
}
13131313
}
@@ -1555,7 +1555,7 @@ void WitchEnter()
15551555
StartStore(TalkID::WitchRecharge);
15561556
break;
15571557
case 20:
1558-
ActiveStore = TalkID::Exit;
1558+
ActiveStore = TalkID::None;
15591559
break;
15601560
}
15611561
}
@@ -1700,7 +1700,7 @@ void BoyEnter()
17001700
}
17011701

17021702
if ((CurrentTextLine != 8 && !BoyItem.isEmpty()) || (CurrentTextLine != 12 && BoyItem.isEmpty())) {
1703-
ActiveStore = TalkID::Exit;
1703+
ActiveStore = TalkID::None;
17041704
return;
17051705
}
17061706

@@ -1761,7 +1761,7 @@ void HealerBuyItem(Item &item)
17611761
void BoyBuyEnter()
17621762
{
17631763
if (CurrentTextLine != 10) {
1764-
ActiveStore = TalkID::Exit;
1764+
ActiveStore = TalkID::None;
17651765
return;
17661766
}
17671767

@@ -1881,7 +1881,7 @@ void HealerEnter()
18811881
StartStore(TalkID::HealerBuy);
18821882
break;
18831883
case 18:
1884-
ActiveStore = TalkID::Exit;
1884+
ActiveStore = TalkID::None;
18851885
break;
18861886
}
18871887
}
@@ -1927,7 +1927,7 @@ void StorytellerEnter()
19271927
StartStore(TalkID::StorytellerIdentify);
19281928
break;
19291929
case 18:
1930-
ActiveStore = TalkID::Exit;
1930+
ActiveStore = TalkID::None;
19311931
break;
19321932
}
19331933
}
@@ -2003,7 +2003,7 @@ void TavernEnter()
20032003
StartStore(TalkID::Gossip);
20042004
break;
20052005
case 18:
2006-
ActiveStore = TalkID::Exit;
2006+
ActiveStore = TalkID::None;
20072007
break;
20082008
}
20092009
}
@@ -2018,7 +2018,7 @@ void BarmaidEnter()
20182018
StartStore(TalkID::Gossip);
20192019
break;
20202020
case 14:
2021-
ActiveStore = TalkID::Exit;
2021+
ActiveStore = TalkID::None;
20222022
IsStashOpen = true;
20232023
Stash.RefreshItemStatFlags();
20242024
invflag = true;
@@ -2029,7 +2029,7 @@ void BarmaidEnter()
20292029
}
20302030
break;
20312031
case 18:
2032-
ActiveStore = TalkID::Exit;
2032+
ActiveStore = TalkID::None;
20332033
break;
20342034
}
20352035
}
@@ -2044,7 +2044,7 @@ void DrunkEnter()
20442044
StartStore(TalkID::Gossip);
20452045
break;
20462046
case 18:
2047-
ActiveStore = TalkID::Exit;
2047+
ActiveStore = TalkID::None;
20482048
break;
20492049
}
20502050
}
@@ -2115,7 +2115,7 @@ void AddStoreHoldRepair(Item *itm, int8_t i)
21152115
void InitStores()
21162116
{
21172117
ClearSText(0, STORE_LINES);
2118-
ActiveStore = TalkID::Exit;
2118+
ActiveStore = TalkID::None;
21192119
IsTextFullSize = false;
21202120
HasScrollbar = false;
21212121
PremiumItemCount = 0;
@@ -2154,7 +2154,7 @@ void FreeStoreMem()
21542154
if (*GetOptions().Gameplay.showItemGraphicsInStores) {
21552155
FreeHalfSizeItemSprites();
21562156
}
2157-
ActiveStore = TalkID::Exit;
2157+
ActiveStore = TalkID::None;
21582158
for (STextStruct &entry : TextLine) {
21592159
entry.text.clear();
21602160
entry.text.shrink_to_fit();
@@ -2352,7 +2352,7 @@ void StartStore(TalkID s)
23522352
case TalkID::Barmaid:
23532353
StartBarmaid();
23542354
break;
2355-
case TalkID::Exit:
2355+
case TalkID::None:
23562356
break;
23572357
}
23582358

@@ -2436,7 +2436,7 @@ void StoreESC()
24362436
case TalkID::Tavern:
24372437
case TalkID::Drunk:
24382438
case TalkID::Barmaid:
2439-
ActiveStore = TalkID::Exit;
2439+
ActiveStore = TalkID::None;
24402440
break;
24412441
case TalkID::Gossip:
24422442
StartStore(OldActiveStore);
@@ -2488,7 +2488,7 @@ void StoreESC()
24882488
CurrentTextLine = OldTextLine;
24892489
ScrollPos = OldScrollPos;
24902490
break;
2491-
case TalkID::Exit:
2491+
case TalkID::None:
24922492
break;
24932493
}
24942494
}
@@ -2690,7 +2690,7 @@ void StoreEnter()
26902690
case TalkID::Barmaid:
26912691
BarmaidEnter();
26922692
break;
2693-
case TalkID::Exit:
2693+
case TalkID::None:
26942694
break;
26952695
}
26962696
}
@@ -2777,7 +2777,7 @@ void ReleaseStoreBtn()
27772777

27782778
bool IsPlayerInStore()
27792779
{
2780-
return ActiveStore != TalkID::Exit;
2780+
return ActiveStore != TalkID::None;
27812781
}
27822782

27832783
} // namespace devilution

Source/stores.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace devilution {
2323
#define STORE_LINES 104
2424

2525
enum class TalkID : uint8_t {
26-
Exit,
26+
None,
2727
Smith,
2828
SmithBuy,
2929
SmithSell,

0 commit comments

Comments
 (0)