]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - clvm_cmds.c
remove unused variable
[xonotic/darkplaces.git] / clvm_cmds.c
index ce253af6852530d0ea50b96248585e60abd80af1..ce8c42e74468eb17be296c9562d718ed219ac7d0 100644 (file)
@@ -174,7 +174,9 @@ static void VM_CL_sound (prvm_prog_t *prog)
        float                           volume;
        float                           attenuation;
        float pitchchange;
+       /*
        int flags;
+       */
        vec3_t                          org;
 
        VM_SAFEPARMCOUNTRANGE(5, 7, VM_CL_sound);
@@ -203,10 +205,12 @@ static void VM_CL_sound (prvm_prog_t *prog)
                pitchchange = PRVM_G_FLOAT(OFS_PARM5);
        // ignoring prog->argc < 7 for now (no flags supported yet)
 
+       /*
        if (prog->argc < 7)
                flags = 0;
        else
                flags = PRVM_G_FLOAT(OFS_PARM6);
+       */
 
        channel = CHAN_USER2ENGINE(channel);
 
@@ -216,8 +220,12 @@ static void VM_CL_sound (prvm_prog_t *prog)
                return;
        }
 
+       // TODO currently the only flag defined in the interface is
+       // SOUNDFLAG_RELIABLE. This one makes no sense at all from CSQC.
+       // We want to, in a later extension, expose more flags.
+
        CL_VM_GetEntitySoundOrigin(MAX_EDICTS + PRVM_NUM_FOR_EDICT(entity), org);
-       S_StartSound_StartPosition_Flags(MAX_EDICTS + PRVM_NUM_FOR_EDICT(entity), channel, S_FindName(sample), org, volume, attenuation, 0, flags, pitchchange > 0.0f ? pitchchange * 0.01f : 1.0f);
+       S_StartSound_StartPosition_Flags(MAX_EDICTS + PRVM_NUM_FOR_EDICT(entity), channel, S_FindName(sample), org, volume, attenuation, 0, 0, pitchchange > 0.0f ? pitchchange * 0.01f : 1.0f);
 }
 
 // #483 void(vector origin, string sample, float volume, float attenuation) pointsound