Remember store buy/sell state.

This commit is contained in:
Mari the Deer 2022-04-12 16:26:41 +02:00
commit 6252bf2dba
3 changed files with 6 additions and 3 deletions

View file

@ -82,10 +82,12 @@ Class DemolitionistStoreTab : DemolitionistMenuTab
override void OnSelect()
{
bSell = master.shnd.menustate.At("WasSelling").ToInt();
smofs = ofs;
}
override void OnDeselect()
{
master.shnd.menustate.Insert("WasSelling",String.Format("%d",bSell));
smofs = ofs;
}