]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix another float->enum conversion error with g++ 4
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 21 Oct 2005 06:15:55 +0000 (06:15 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 21 Oct 2005 06:15:55 +0000 (06:15 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5752 d7cf8633-e32d-0410-b094-e92efae38249

prvm_cmds.c

index e3f639294101fddda2a90ca74c9b9694fdf306c8..45cfb89dee7b59ccf8e6f5da5e9c3d70650fe010 100644 (file)
@@ -2682,7 +2682,7 @@ void VM_cin_setstate( void )
        name = PRVM_G_STRING( OFS_PARM0 );
        VM_CheckEmptyString( name );
 
-       state = (clvideostate_t)PRVM_G_FLOAT( OFS_PARM1 );
+       state = (clvideostate_t)((int)PRVM_G_FLOAT( OFS_PARM1 ));
 
        video = CL_GetVideo( name );
        if( video && state > CLVIDEO_UNUSED && state < CLVIDEO_STATECOUNT )