Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added ability to test if we are doing a Simulate
  • Loading branch information
nickgammon committed Nov 3, 2015
1 parent d95bb11 commit f575af7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc.h
Expand Up @@ -1373,6 +1373,7 @@ class CMUSHclientDoc : public CDocument

list<CPaneStyle> m_OutstandingLines;
bool m_bNotesNotWantedNow;
bool m_bDoingSimulate;

BOOL m_bScrollBarWanted; // true if we want to see scroll bars

Expand Down
3 changes: 2 additions & 1 deletion doc_construct.cpp
Expand Up @@ -206,7 +206,8 @@ int i;

m_bVariablesChanged = false;
m_bNotesNotWantedNow = false;

m_bDoingSimulate = false;

m_view_number = 0;
m_LastFlushTime = CTime::GetCurrentTime();

Expand Down
1 change: 1 addition & 0 deletions scripting/methods/methods_info.cpp
Expand Up @@ -579,6 +579,7 @@ VARIANT CMUSHclientDoc::GetInfo(long InfoType)
case 120: SetUpVariantBool (vaResult, m_bScrollBarWanted); break;
case 121: SetUpVariantBool (vaResult, App.m_iCounterFrequency != 0); break;
case 122: SetUpVariantBool (vaResult, sqlite3_threadsafe() != 0); break;
case 123: SetUpVariantBool (vaResult, m_bDoingSimulate); break;

case 201: SetUpVariantLong (vaResult, m_total_lines); break;
case 202: SetUpVariantLong (vaResult, m_new_lines); break;
Expand Down
4 changes: 3 additions & 1 deletion scripting/methods/methods_utilities.cpp
Expand Up @@ -427,7 +427,9 @@ SetModifiedFlag (ChangedFlag);

void CMUSHclientDoc::Simulate(LPCTSTR Text)
{
DisplayMsg(Text, strlen (Text), 0);
m_bDoingSimulate = true;
DisplayMsg(Text, strlen (Text), 0);
m_bDoingSimulate = false;
} // end of CMUSHclientDoc::Simulate


Expand Down

0 comments on commit f575af7

Please sign in to comment.