From 3a86ceeea9f268db4dded8edc0af3d7496923835 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sat, 25 Oct 2008 17:54:46 +0000 Subject: [PATCH] fixed gcc warnings git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3249 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/physics.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/src/physics.cpp b/source/src/physics.cpp index 2af07734..ca1dfefa 100644 --- a/source/src/physics.cpp +++ b/source/src/physics.cpp @@ -319,12 +319,11 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime) vec d; // vector of direction we ideally want to move in - float drop, rise; + float drop = 0, rise = 0; if(pl->type==ENT_BOUNCE) { bounceent* bounce = (bounceent *) pl; - drop = rise = 0; water = hdr.waterlevel>pl->o.z; const float speed = curtime*pl->maxspeed/(water ? 2000.0f : 1000.0f); @@ -395,7 +394,6 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime) } else if(specfly) { - drop = 0.0f; rise = speed/moveres/1.2f; if(pl->jumpnext) {