X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fmapobjects%2Ffunc%2Fbutton.qc;h=c716b400c86985e1260faa8aeaad2f85ab8bbbb1;hb=51e4f798abb1fc968f37d1ad425eaf5871bb33de;hp=423ac5e7b6d927f9fa2f8cdd42cf9797fe6b2f56;hpb=61749b7d7dde89c14607ba07d0a106feff962d7e;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/mapobjects/func/button.qc b/qcsrc/common/mapobjects/func/button.qc index 423ac5e7b..c716b400c 100644 --- a/qcsrc/common/mapobjects/func/button.qc +++ b/qcsrc/common/mapobjects/func/button.qc @@ -206,8 +206,8 @@ spawnfunc(func_button) if (!this.lip) this.lip = 4; - if(this.wait == -1 && autocvar_sv_q3defragcompat) - this.wait = 0.1; // compatibility for q3df: "instant" return + if(this.wait < 0 && q3compat) + this.wait = 0.1; // compatibility for q3: -1 = return immediately if(this.noise != "") precache_sound(this.noise);