Skip to content

Commit a03c93b

Browse files
committed
Fixed bug, removed *.clw files from git
1 parent 13411c1 commit a03c93b

File tree

4 files changed

+11
-26
lines changed

4 files changed

+11
-26
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ find_non_standard_encoding.lua
4343
*.po
4444
*.GID
4545
*.suo
46+
*.clw
4647

4748
#
4849
# Notes for me:

OtherTypes.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ typedef CTypedPtrList <CPtrList, CActiveTag*> CActiveTagList;
905905
/////////////////////////////////////////////////////////////////////////////
906906
// CPlugin - these are world plugins
907907

908-
// for storing map directions, and inverses of them
908+
// for storing dispatch IDs, and how many times each one is called
909909
class CScriptDispatchID
910910
{
911911
public:
@@ -931,12 +931,12 @@ class CScriptDispatchID
931931
// returns true if DISPID is valid
932932
inline bool isvalid () const { return _dispid != DISPID_UNKNOWN; };
933933

934-
DISPID _dispid;
935-
__int64 _count;
934+
DISPID _dispid; // the dispatch ID from the COM engine, or DISPID_UNKNOWN
935+
__int64 _count; // count of attempts to call it (if not DISPID_UNKNOWN)
936936
}; // end of class CScriptDispatchID
937937

938-
typedef map<const char *, CScriptDispatchID> CScriptDispatchIDsMap;
939-
typedef map<const char *, CScriptDispatchID>::const_iterator CScriptDispatchIDIterator;
938+
typedef map<const string, CScriptDispatchID> CScriptDispatchIDsMap;
939+
typedef map<const string, CScriptDispatchID>::const_iterator CScriptDispatchIDIterator;
940940

941941

942942
class CScriptEngine;

ddx.clw

Lines changed: 0 additions & 5 deletions
This file was deleted.

world_debug.cpp

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,7 +1313,7 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
13131313
{
13141314
CTimer * pTimer;
13151315
CString strName;
1316-
GetTimerMap ().GetNextAssoc (timerpos, strName, pTimer);
1316+
pPlugin->m_TimerMap.GetNextAssoc (timerpos, strName, pTimer);
13171317
} // end of for loop
13181318

13191319

@@ -2055,29 +2055,18 @@ void CMUSHclientDoc::DebugHelper (const CString strAction, CString strArgument)
20552055

20562056
ColourNote (SCRIPTERRORCONTEXTFORECOLOUR, "", "------ Callback List (alphabetic order) ------");
20572057
Note ("");
2058-
20592058
int iCount = 0;
2060-
map<string,CScriptDispatchID> sortedCallbacks;
20612059

20622060
for (CScriptDispatchIDIterator it = m_CurrentPlugin->m_PluginCallbacks.begin ();
20632061
it != m_CurrentPlugin->m_PluginCallbacks.end ();
20642062
it++)
2065-
20662063
if (it->second.isvalid () || it->second._count > 0)
2067-
sortedCallbacks [it->first] = it->second;
2068-
2069-
// this will get them into alphabetic order (the original map is by pointers, not sorted by name)
2070-
2071-
for (map<string,CScriptDispatchID>::const_iterator it2 = sortedCallbacks.begin ();
2072-
it2 != sortedCallbacks.end ();
2073-
it2++)
2074-
20752064
{
20762065
iCount++;
2077-
Note ( CFormat ("%-30s : Valid: %s. Called %I64i time%s.",
2078-
it2->first.c_str (),
2079-
SHOW_TRUE (it2->second.isvalid ()),
2080-
PLURAL (it2->second._count)
2066+
Note ( CFormat ("%-30s -> Valid: %s. %10I64i call%s.",
2067+
it->first.c_str (),
2068+
SHOW_TRUE (it->second.isvalid ()),
2069+
PLURAL (it->second._count)
20812070
));
20822071

20832072
}

0 commit comments

Comments
 (0)