]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix some sound errors and a warning
authorRudolf Polzer <divverent@xonotic.org>
Thu, 7 Jul 2011 19:24:55 +0000 (21:24 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Thu, 7 Jul 2011 19:25:12 +0000 (21:25 +0200)
qcsrc/client/csqc_builtins.qc
qcsrc/common/mapinfo.qc
qcsrc/menu/xonotic/dialog_hudpanel_physics.c
qcsrc/menu/xonotic/dialog_multiplayer_create.c
qcsrc/server/miscfunctions.qc

index b7e4b39713a011224633c67d93953921f63c4c4d..b9df8f8f5c73a0ca678351aefccc9ca20ee10017 100644 (file)
@@ -329,3 +329,5 @@ float CVAR_TYPEFLAG_PRIVATE = 4;
 float CVAR_TYPEFLAG_ENGINE = 8;
 float CVAR_TYPEFLAG_HASDESCRIPTION = 16;
 float CVAR_TYPEFLAG_READONLY = 32;
+
+void (entity e, float chan, string samp, float vol, float atten, float pitchshift, float flags)        sound7 = #8;
index a6b0788088216c93b53f2a0dfa96aabc5ed5e820..902479c43cbd561ebe618c1cae739b7ad8042fec 100644 (file)
@@ -802,7 +802,7 @@ float MapInfo_Get_ByName(string pFilename, float pAllowGenerate, float pGametype
 {
        string fn;
        string s, t;
-       float fh, fh2;
+       float fh;
        float r, f, n, i, p;
        string acl;
 
index 66c872b9f9589689b9030fb820d2c5a17a2fbc06..f8b162f2396e398f2ce0f2b82a0d48f7eaabf990 100644 (file)
@@ -16,7 +16,6 @@ void XonoticHUDPhysicsDialog_fill(entity me)
 {
        entity e;
        string panelname = "physics";
-       float i;
 
        me.TR(me);
                me.TD(me, 1, 4, e = makeXonoticTextSlider("hud_panel_physics"));
index 2d9689f64422e5d527692b91b753a30afb6268a8..b9b5896804ddc99de65c0f74dee9a6e60192d6d7 100644 (file)
@@ -29,7 +29,6 @@ entity makeXonoticServerCreateTab()
 void XonoticServerCreateTab_fill(entity me)
 {
        entity e, e0;
-       float n;
 
        me.TR(me);
                me.TD(me, 1, 3, e = makeXonoticTextLabel(0, _("Game type:")));
index 69704999725bf1cb45e5a198a6b32b63af719707..b669b041f51f765b10c8875b3e2d5c89d8fe6308 100644 (file)
@@ -1434,7 +1434,7 @@ void stopsoundto(float dest, entity e, float chan)
 
     entno = num_for_edict(e);
 
-    if (entno >= 8192 || chan > 7)
+    if (entno >= 8192 || chan < 0 || chan > 7)
     {
         float idx, sflags;
         idx = precache_sound_index("misc/null.wav");