From: Andy D. <kha...@us...> - 2005-01-01 15:33:28
|
Update of /cvsroot/planeshift/planeshift/src/server In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23532/server Modified Files: psserverdr.cpp Log Message: Added a fix for buggy clients that cause players to fly up. Index: psserverdr.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/server/psserverdr.cpp,v retrieving revision 1.82 retrieving revision 1.83 diff -C2 -d -r1.82 -r1.83 *** psserverdr.cpp 1 Jan 2005 12:57:22 -0000 1.82 --- psserverdr.cpp 1 Jan 2005 15:33:19 -0000 1.83 *************** *** 196,206 **** } ! //Check if client fell off the end of the world ! if (drmsg.pos.y < -1000) { actor->Kill(NULL); psserver->SendSystemInfo(me->clientnum, "You fell off the end of the world and died."); } ! // Now multicast to other clients --- 196,210 ---- } ! //Check if client fell off the end of the world or has left it ! if (drmsg.pos.y < -1000 && drmsg.vel.y < 0) { actor->Kill(NULL); psserver->SendSystemInfo(me->clientnum, "You fell off the end of the world and died."); } ! else if (drmsg.pos.y > 1000 && drmsg.vel.y > 0) ! { ! actor->Kill(NULL); ! psserver->SendSystemInfo(me->clientnum, "You flew off the end of the world and died."); ! } // Now multicast to other clients |