[Scummvm-cvs-logs] CVS: residual actor.cpp,1.49,1.50
Pawel Kolodziejski
aquadran at users.sourceforge.net
Sun Apr 3 03:42:17 CEST 2005
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm/smush smush_player.cpp,1.151,1.152
- Next message: [Scummvm-cvs-logs] CVS: residual/lua lobject.h,1.2,1.3 lrestore.cpp,1.5,1.6 lstring.cpp,1.3,1.4 lundump.cpp,1.4,1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/residual
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11263
Modified Files:
actor.cpp
Log Message:
fixed warnings
Index: actor.cpp
===================================================================
RCS file: /cvsroot/scummvm/residual/actor.cpp,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- actor.cpp 28 Mar 2005 04:00:59 -0000 1.49
+++ actor.cpp 3 Apr 2005 10:41:57 -0000 1.50
@@ -138,12 +138,12 @@
// Check for an adjacent sector which can continue
// the path
- currSector = g_engine->currScene()->findPointSector(ei.exitPoint + 0.0001 * puckVector, 0x1000);
+ currSector = g_engine->currScene()->findPointSector(ei.exitPoint + (float)0.0001 * puckVector, 0x1000);
if (currSector == prevSector)
break;
}
- ei.angleWithEdge *= (180.0 / M_PI);
+ ei.angleWithEdge *= (float)(180.0 / M_PI);
int turnDir = 1;
if (ei.angleWithEdge > 90) {
ei.angleWithEdge = 180 - ei.angleWithEdge;
@@ -153,7 +153,7 @@
if (ei.angleWithEdge > _reflectionAngle)
return;
- ei.angleWithEdge += 0.1;
+ ei.angleWithEdge += (float)0.1;
float turnAmt = g_engine->perSecond(_turnRate);
if (turnAmt > ei.angleWithEdge)
turnAmt = ei.angleWithEdge;
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm/smush smush_player.cpp,1.151,1.152
- Next message: [Scummvm-cvs-logs] CVS: residual/lua lobject.h,1.2,1.3 lrestore.cpp,1.5,1.6 lstring.cpp,1.3,1.4 lundump.cpp,1.4,1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list