From: Keith F. <ven...@us...> - 2004-02-07 18:42:27
|
Update of /cvsroot/planeshift/planeshift/src/client In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11943 Modified Files: cmdusers.cpp Log Message: Added "/dig for gold" command on the client. Index: cmdusers.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/cmdusers.cpp,v retrieving revision 1.50 retrieving revision 1.51 diff -C2 -d -r1.50 -r1.51 *** cmdusers.cpp 7 Feb 2004 01:59:21 -0000 1.50 --- cmdusers.cpp 7 Feb 2004 18:39:28 -0000 1.51 *************** *** 115,118 **** --- 115,120 ---- cmdsource->Subscribe("/stopusing", paws->Translate(" Stop using the targeted item."), CmdHandler::VISIBLE_TO_USER, this); + cmdsource->Subscribe("/dig", paws->Translate(" Mine for natural resources in the ground."), + CmdHandler::VISIBLE_TO_USER, this); cmdsource->Subscribe("/target_next_nearest_player", paws->Translate(" Targets the player that is the next nearest to you after your current target. If you do not have a target, it targets the closest player. If there is no next target, it cycles back to the nearest player. Maximum range: 50 meters."), *************** *** 168,171 **** --- 170,174 ---- cmdsource->Unsubscribe("/use", this ); cmdsource->Unsubscribe("/stopusing", this ); + cmdsource->Unsubscribe("/dig", this ); cmdsource->Unsubscribe("/target_next_nearest_player", this); cmdsource->Unsubscribe("/target_prev_nearest_player", this); *************** *** 287,290 **** --- 290,300 ---- UpdateTarget(SEARCH_NONE,NO_TARGET); } + else if (!strncmp(cmd,"/use", 4) || + !strncmp(cmd,"/stopusing",10) || + !strncmp(cmd,"/dig",4) ) + { + psWorkCmdMessage work(cmd); + msgqueue->SendMessage(work.msg); + } else { |