mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-04 22:43:17 +00:00
Don't overwrite a changeable preference with a static value. (ping timeout)
This commit is contained in:
parent
9970eafa3b
commit
d698d53ee9
@ -63,17 +63,15 @@
|
||||
default=yes
|
||||
[/advanced_preference]
|
||||
|
||||
# this can be uncommented once type=int or similar is supported
|
||||
# the hardcoded value also needs to be removed from network.cpp
|
||||
#[advanced_preference]
|
||||
# field=ping_timeout
|
||||
# name=_"Ping Timeout"
|
||||
# type=int
|
||||
# default=60
|
||||
# min=0
|
||||
# max=180
|
||||
# step=10
|
||||
#[/advanced_preference]
|
||||
[advanced_preference]
|
||||
field=ping_timeout
|
||||
name=_"Ping Timeout"
|
||||
type=int
|
||||
default=0
|
||||
min=0
|
||||
max=60
|
||||
step=1
|
||||
[/advanced_preference]
|
||||
|
||||
#[advanced_preference]
|
||||
# field=dummy_slider
|
||||
|
@ -133,7 +133,6 @@ manager::~manager()
|
||||
history_map.clear();
|
||||
encountered_units_set.clear();
|
||||
encountered_terrains_set.clear();
|
||||
set_ping_timeout(network::ping_timeout);
|
||||
}
|
||||
|
||||
bool is_authenticated() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user