fix a compile error
authorRudolf Polzer <divverent@alientrap.org>
Sun, 5 Dec 2010 15:44:12 +0000 (16:44 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 5 Dec 2010 15:44:12 +0000 (16:44 +0100)
qcsrc/server/g_triggers.qc

index 17ee369..cadc1fb 100644 (file)
@@ -673,6 +673,7 @@ void target_speaker_use_activator()
                else
                {
                        tokenize_console(activator.sample);
+                       float n;
                        n = stof(argv(1));
                        if(n > 0)
                                snd = strcat(argv(0), ftos(floor(random() * n + 1)), ".wav"); // randomization
@@ -699,6 +700,7 @@ void target_speaker_use_on()
                else
                {
                        tokenize_console(activator.sample);
+                       float n;
                        n = stof(argv(1));
                        if(n > 0)
                                snd = strcat(argv(0), ftos(floor(random() * n + 1)), ".wav"); // randomization