From 31ce58a4366510a578b5c0b624da7b5b91255c6e Mon Sep 17 00:00:00 2001 From: flowtron Date: Wed, 18 Aug 2021 14:04:57 +0200 Subject: [PATCH] default values update --- source/src/editing.cpp | 4 ++-- source/src/entities.cpp | 2 +- source/src/serverbrowser.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/src/editing.cpp b/source/src/editing.cpp index 3f077ac3..44805154 100644 --- a/source/src/editing.cpp +++ b/source/src/editing.cpp @@ -38,7 +38,7 @@ int keepshowingeditingsettingsfrom = 0; int keepshowingeditingsettingstill = 0; VARFP(editingsettingsvisibletime, 750, 7500, 75000, toucheditingsettings(true); ); // begin anew after any changes -VARFP(showeditingsettings, 0, 1, 3, { if(showeditingsettings){ toucheditingsettings(true); }else{ keepshowingeditingsettingsfrom = keepshowingeditingsettingstill = 0; }}); // 0:almost entirely off, 1: all off after duration, 2: text off after duration, 3: permanent +VARFP(showeditingsettings, 0, 0, 3, { if(showeditingsettings){ toucheditingsettings(true); }else{ keepshowingeditingsettingsfrom = keepshowingeditingsettingstill = 0; }}); // 0:almost entirely off, 1: all off after duration, 2: text off after duration, 3: permanent void toggleedit(bool force) { @@ -840,7 +840,7 @@ void rendereditingsettings() { if(!conopen && (showeditingsettings > 0 || (edithideentmask != 0 && editingsettingsshowminimal))) { - bool showing = ((showeditingsettings >= 2) || (keepshowingeditingsettingstill > 0)); + bool showing = (showeditingsettings >= 2 || keepshowingeditingsettingstill); int deltax = 0; if(keepshowingeditingsettingstill > 0) { diff --git a/source/src/entities.cpp b/source/src/entities.cpp index fc89207b..3b93b818 100644 --- a/source/src/entities.cpp +++ b/source/src/entities.cpp @@ -5,7 +5,7 @@ VARP(showclips, 0, 1, 1); VARP(showmodelclipping, 0, 0, 1); VARP(showladderentities, 0, 0, 1); -VARP(showplayerstarts, 0, 0, 1); // render player models with spawn-type appropriate skins (CLA:red,RVSF:blue,FFA:green) +VARP(showplayerstarts, 0, 1, 1); // render player models with spawn-type appropriate skins (CLA:red,RVSF:blue,FFA:green) void toucheditingsettings(bool forcerestart){ if(showeditingsettings) diff --git a/source/src/serverbrowser.cpp b/source/src/serverbrowser.cpp index e239dd44..fd86ab4d 100644 --- a/source/src/serverbrowser.cpp +++ b/source/src/serverbrowser.cpp @@ -1310,7 +1310,7 @@ int progress_callback_retrieveservers(void *data, float progress) return interceptkey(SDLK_ESCAPE) ? 1 : 0; } -VARP(mastertype, 0, 1, 1); // 0: TCP direct, 1: HTTP proxy +VARP(mastertype, 0, 0, 1); // 0: TCP direct, 1: HTTP proxy void retrieveservers(vector &data) {