From: Rudolf Polzer Date: Sun, 5 Dec 2010 15:44:12 +0000 (+0100) Subject: fix a compile error X-Git-Tag: xonotic-v0.1.0preview~69^2~8 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6685acb7bed792adfd287a43eaeb1061f3f82bb3;p=xonotic%2Fxonotic-data.pk3dir.git fix a compile error --- diff --git a/qcsrc/server/g_triggers.qc b/qcsrc/server/g_triggers.qc index 17ee369d8..cadc1fb70 100644 --- a/qcsrc/server/g_triggers.qc +++ b/qcsrc/server/g_triggers.qc @@ -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