From: Xordan <mg...@us...> - 2007-09-03 01:49:21
|
Update of /cvsroot/planeshift/planeshift/src/client In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12754/client Modified Files: pscamera.cpp pscelclient.cpp pscharcontrol.cpp psclientdr.cpp Log Message: - Deprecation and other warning fixes. Index: pscamera.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/pscamera.cpp,v retrieving revision 1.90 retrieving revision 1.91 diff -C2 -d -r1.90 -r1.91 *** pscamera.cpp 26 Aug 2007 15:55:02 -0000 1.90 --- pscamera.cpp 3 Sep 2007 00:17:26 -0000 1.91 *************** *** 1217,1221 **** { csVector3 velocity; ! actor->linmove->GetVelocity(velocity); float velNormSquared = velocity.SquaredNorm(); --- 1217,1221 ---- { csVector3 velocity; ! velocity = actor->linmove->GetVelocity(); float velNormSquared = velocity.SquaredNorm(); Index: pscelclient.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/pscelclient.cpp,v retrieving revision 1.302 retrieving revision 1.303 diff -C2 -d -r1.302 -r1.303 *** pscelclient.cpp 22 Aug 2007 07:11:32 -0000 1.302 --- pscelclient.cpp 3 Sep 2007 00:17:26 -0000 1.303 *************** *** 862,866 **** { csVector3 vel; ! actor->linmove->GetVelocity(vel); if (vel.y < -50) // Large speed puts too much stress on CPU { --- 862,866 ---- { csVector3 vel; ! vel = actor->linmove->GetVelocity(); if (vel.y < -50) // Large speed puts too much stress on CPU { *************** *** 1130,1134 **** bool GEMClientActor::NeedDRUpdate(unsigned char& priority) { ! linmove->GetVelocity(vel); linmove->GetAngularVelocity(angularVelocity); --- 1130,1134 ---- bool GEMClientActor::NeedDRUpdate(unsigned char& priority) { ! vel = linmove->GetVelocity(); linmove->GetAngularVelocity(angularVelocity); Index: pscharcontrol.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/pscharcontrol.cpp,v retrieving revision 1.165 retrieving revision 1.166 diff -C2 -d -r1.165 -r1.166 *** pscharcontrol.cpp 26 Aug 2007 16:26:29 -0000 1.165 --- pscharcontrol.cpp 3 Sep 2007 00:17:26 -0000 1.166 *************** *** 275,279 **** csArray<psControl*>* ctrls = GetMappedTriggers(device,button); //All triggers (for stopping triggers with mods that may not exist now) ! int i = 0; do { --- 275,279 ---- csArray<psControl*>* ctrls = GetMappedTriggers(device,button); //All triggers (for stopping triggers with mods that may not exist now) ! uint i = 0; do { Index: psclientdr.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/psclientdr.cpp,v retrieving revision 1.106 retrieving revision 1.107 diff -C2 -d -r1.106 -r1.107 *** psclientdr.cpp 17 Apr 2007 06:21:24 -0000 1.106 --- psclientdr.cpp 3 Sep 2007 00:17:26 -0000 1.107 *************** *** 112,116 **** return; // Main actor still in unresolved sector ! celclient->GetMainPlayer()->linmove->GetVelocity(vel); beganFalling = (prevVelY>=0 && vel.y<0); --- 112,116 ---- return; // Main actor still in unresolved sector ! vel = celclient->GetMainPlayer()->linmove->GetVelocity(); beganFalling = (prevVelY>=0 && vel.y<0); |