Updated DSP file. Fixed a bunch of warnings with MSVC6
authormolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 4 Feb 2002 10:36:23 +0000 (10:36 +0000)
committermolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 4 Feb 2002 10:36:23 +0000 (10:36 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1493 d7cf8633-e32d-0410-b094-e92efae38249

cgame.c
darkplaces.dsp

diff --git a/cgame.c b/cgame.c
index 1e39889..615fb7f 100644 (file)
--- 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);
index 9da724e..0f75603 100644 (file)
@@ -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