]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 17ee369d849962486008c1fb62365d14ac13dd31..cadc1fb70c0a9c6fed336b2747a749495f8b7cf3 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