From: Ondrej H. <tan...@us...> - 2005-01-07 20:28:12
|
Update of /cvsroot/planeshift/planeshift/src/client/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2766/gui Modified Files: pawsdetailwindow.cpp Log Message: - Doubleclick on an entity in game invokes action which was configured by user (see new options screen Controls--->Entities) Index: pawsdetailwindow.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/gui/pawsdetailwindow.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** pawsdetailwindow.cpp 25 Aug 2004 05:42:12 -0000 1.5 --- pawsdetailwindow.cpp 7 Jan 2005 20:28:02 -0000 1.6 *************** *** 57,64 **** --- 57,66 ---- SCF_CONSTRUCT_IBASE(0); target = NULL; + psengine->GetMsgHandler()->Subscribe( this, MSGTYPECHARACTERDETAILS ); } pawsDetailWindow::~pawsDetailWindow() { + psengine->GetMsgHandler()->Unsubscribe( this, MSGTYPECHARACTERDETAILS ); } *************** *** 78,87 **** void pawsDetailWindow::RequestDetails() { - if ( !psengine->GetMsgHandler()->Subscribe( this, MSGTYPECHARACTERDETAILS ) ) - { - printf("Couldn't subscribe to MSGTYPECHARACTERDETAILS (pawsDetailWindow)"); - return; - } - psCharacterDetailsRequestMessage requestMsg(false); psengine->GetMsgHandler()->SendMessage(requestMsg.msg); --- 80,83 ---- *************** *** 129,134 **** description->SetText(msg.desc.GetData()); - psengine->GetMsgHandler()->Unsubscribe( this, MSGTYPECHARACTERDETAILS ); - this->Show(); return; --- 125,128 ---- |