From ca73bea207fcb994f6baa2b170e198a9dced6b89 Mon Sep 17 00:00:00 2001 From: molivier Date: Mon, 4 Feb 2002 10:36:23 +0000 Subject: [PATCH] Updated DSP file. Fixed a bunch of warnings with MSVC6 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1493 d7cf8633-e32d-0410-b094-e92efae38249 --- cgame.c | 6 +++--- darkplaces.dsp | 8 -------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/cgame.c b/cgame.c index 1e398892..615fb7f4 100644 --- a/cgame.c +++ b/cgame.c @@ -185,7 +185,7 @@ static void explosiondebris_framethink(localentity_t *self) { if (gametime > self->dietime) { - self->draw.scale -= frametime * 3; + self->draw.scale -= (float)(frametime * 3.0); if (self->draw.scale < 0.05f) { entremove(self); @@ -286,7 +286,7 @@ static void net_gibshower(unsigned char num) time = CGVM_Time(); // read the network data count = CGVM_MSG_ReadByte(); - velocityscale = CGVM_MSG_ReadByte() * 100; + velocityscale = (float)(CGVM_MSG_ReadByte() * 100); readvector(org); for (i = 0;i < count;i++) @@ -301,7 +301,7 @@ static void net_gibshower(unsigned char num) e->draw.angles[2] = CGVM_RandomRange(0, 360); VectorRandom(e->velocity); VectorScale(e->velocity, velocityscale, e->velocity); - e->velocity[2] -= cg_gravity * 0.1; + e->velocity[2] -= (float)(cg_gravity * 0.1); e->avelocity[0] = CGVM_RandomRange(0, 1440); e->avelocity[1] = CGVM_RandomRange(0, 1440); e->avelocity[2] = CGVM_RandomRange(0, 1440); diff --git a/darkplaces.dsp b/darkplaces.dsp index 9da724e6..0f756031 100644 --- a/darkplaces.dsp +++ b/darkplaces.dsp @@ -112,10 +112,6 @@ SOURCE=.\chase.c # End Source File # Begin Source File -SOURCE=.\cl_decals.c -# End Source File -# Begin Source File - SOURCE=.\cl_demo.c # End Source File # Begin Source File @@ -308,10 +304,6 @@ SOURCE=.\r_crosshairs.c # End Source File # Begin Source File -SOURCE=.\r_decals.c -# End Source File -# Begin Source File - SOURCE=.\r_explosion.c # End Source File # Begin Source File -- 2.39.2