[74977] users/ryandesign/ports/games/PlasmaClient/files/patch-undo-372.diff
ryandesign at macports.org
ryandesign at macports.org
Mon Jan 10 03:51:19 PST 2011
Revision: 74977
http://trac.macports.org/changeset/74977
Author: ryandesign at macports.org
Date: 2011-01-10 03:51:11 -0800 (Mon, 10 Jan 2011)
Log Message:
-----------
PlasmaClient: remove part of the undo-372 patch that is not the problem (pass frame time to physics update function)
Modified Paths:
--------------
users/ryandesign/ports/games/PlasmaClient/files/patch-undo-372.diff
Modified: users/ryandesign/ports/games/PlasmaClient/files/patch-undo-372.diff
===================================================================
--- users/ryandesign/ports/games/PlasmaClient/files/patch-undo-372.diff 2011-01-10 11:41:00 UTC (rev 74976)
+++ users/ryandesign/ports/games/PlasmaClient/files/patch-undo-372.diff 2011-01-10 11:51:11 UTC (rev 74977)
@@ -62,21 +62,6 @@
void PCAvatarMgr::sendInputStateMsg()
{
// plAvatarInputStateMsg targets the avatar's plArmatureLODMod.
-@@ -544,12 +508,12 @@
- pcGameClient::instance().propagateMessage(&loadClone);
- }
-
--void PCAvatarMgr::updateAvatarPhysics(double frameTime)
-+void PCAvatarMgr::updateAvatarPhysics()
- {
- std::vector<PCAvatarPhys*> avs;
- std::transform(clones.begin(), clones.end(), std::back_inserter(avs), RetrieveValue());
- foreach(PCAvatarPhys* phys, avs)
-- phys->updatePhysics(frameTime);
-+ phys->updatePhysics();
- }
-
- //=============================================
@@ -702,8 +666,3 @@
{
return (clones[local_avatar]->getInvZSpeed());
@@ -96,15 +81,6 @@
const plKey& getLocalAvatar() const { return local_avatar; }
// Functions to propagate local state across the network
-@@ -73,7 +72,7 @@
- void sendClothingSdl();
-
- // This function should be called once every physics frame
-- void updateAvatarPhysics(double frameTime);
-+ void updateAvatarPhysics();
-
- // misc. functions
- bool isPlayerSet() { return local_avatar->getClonePlayerID() != 0; }
@@ -88,7 +87,6 @@
void enableLocalAvatarInvZSpeed();
void disableLocalAvatarInvZSpeed();
@@ -182,7 +158,7 @@
// Just from counting patatoes (not scienced)
const float strafe_speed = 2.f;
-@@ -214,9 +210,11 @@
+@@ -214,7 +210,9 @@
// Standing was measured using fraps video capture, and neroshowtime to determine time, frames count.
// spinning full circle in 4 sec in city using male avatar in 1st person
// So 90 deg/sec.
@@ -191,11 +167,8 @@
+float walking_turn_rate = 2.0;
+float running_turn_rate = 1.7;
--void PCAvatarPhys::updatePhysics(double frameTime)
-+void PCAvatarPhys::updatePhysics()
+ void PCAvatarPhys::updatePhysics(double frameTime)
{
- btVector3 velocity;
- btVector3 strafeVelocity;
@@ -276,56 +274,27 @@
float turn_rate;
@@ -312,7 +285,7 @@
void updateCiChildren(plCoordinateInterface* ci);
-@@ -66,25 +65,16 @@
+@@ -66,19 +65,10 @@
kISJump = 0x0180,
kISRun = 0x0200
};
@@ -332,13 +305,6 @@
void warp(const hsMatrix44& mat);
hsVector3 getOrigin() const;
- float getRotation() const;
-
-- void updatePhysics(double frameTime);
-+ void updatePhysics();
- void enableCollision();
- void disableCollision();
-
@@ -96,12 +86,8 @@
bool getInvZSpeed() {return invZSpeed;}
@@ -492,15 +458,6 @@
break;
case SDLK_s:
pcRenderer::instance().setLookUDAngle(0.);
-@@ -461,7 +440,7 @@
- }
- }
- double t = getTimeDiff();
-- PCAvatarMgr::instance().updateAvatarPhysics(t);
-+ PCAvatarMgr::instance().updateAvatarPhysics();
- PCPhysMgr::instance().step(t);
- pcRenderer::instance().drawScene();
- switch (drawphysics) {
--- singletons/pcClient.cpp 2011-01-07 07:26:45.000000000 -0600
+++ singletons/pcClient.cpp 2011-01-07 07:26:10.000000000 -0600
@@ -376,10 +376,6 @@
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110110/0a410e9d/attachment-0001.html>
More information about the macports-changes
mailing list