Skip to content

Commit

Permalink
Updating some XML and the MPI XML command
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.code.sf.net/p/mmapper/code/trunk/mmapper@192 14c008a5-6e10-0410-bf79-c100e0f1932b
  • Loading branch information
nschimme committed Aug 23, 2010
1 parent 48d3384 commit a604155
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ if (APPLE)
add_custom_command(
TARGET mmapper
POST_BUILD
COMMAND macdeployqt-4.6 ${CMAKE_CURRENT_BINARY_DIR}/mmapper.app
COMMAND macdeployqt ${CMAKE_CURRENT_BINARY_DIR}/mmapper.app
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Deploying the Qt Framework onto the bundle"
)
Expand Down
12 changes: 5 additions & 7 deletions src/parser/mumexmlparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,10 @@ bool MumeXmlParser::element( const QByteArray& line )
break;
case 'm':
if (length > 8)
switch (line.at(8))
{
switch (line.at(8)) {
case ' ':
if (length > 13)
switch (line.at(13))
{
if (length > 14)
switch (line.at(14)) {
case 'n':
m_move = CID_NORTH;
break;
Expand All @@ -215,12 +213,12 @@ bool MumeXmlParser::element( const QByteArray& line )
case 'd':
m_move = CID_DOWN;
break;
}
};
break;
case '/':
m_move = CID_NONE;
break;
}
}
break;
};
break;
Expand Down
4 changes: 2 additions & 2 deletions src/proxy/proxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ bool Proxy::init()
//m_userSocket->flush();

if (Config().m_mpi) {
emit sendToMud(QByteArray("~$#EX1\n1\n"));
emit log("Proxy", "Sent MUME MPI XML request");
emit sendToMud(QByteArray("~$#EX1\n3\n"));
emit log("Proxy", "Sent MUME Protocol Initiator XML request");
}

return TRUE;
Expand Down

0 comments on commit a604155

Please sign in to comment.