From: Christian Heller Date: Tue, 28 Jan 2014 05:46:02 +0000 (+0100) Subject: Client: interface config reload also re-sets virtual screen offset to 0. X-Git-Tag: tce~851 X-Git-Url: https://plomlompom.com/repos/te"st.html?a=commitdiff_plain;h=b8783b73fc84895bca8bf02b2604c3b1178bc7d3;p=plomrogue Client: interface config reload also re-sets virtual screen offset to 0. --- diff --git a/src/client/misc.c b/src/client/misc.c index 17a12da..4af2beb 100644 --- a/src/client/misc.c +++ b/src/client/misc.c @@ -129,6 +129,7 @@ extern void reload_interface_conf() unload_interface_conf(); load_interface_conf(); map_center(); + world.winDB.v_screen_offset = 0; } diff --git a/src/client/misc.h b/src/client/misc.h index 928d8db..5a74586 100644 --- a/src/client/misc.h +++ b/src/client/misc.h @@ -19,7 +19,8 @@ extern void obey_argv(int argc, char * argv[]); * data, world.wins.pad (initialized before opening any windows to the height of * the terminal screen and a width of 1) and window chains. * - * Note that reload_interface_conf() also calls map_center(). + * Note that reload_interface_conf() also calls map_center() and re-sets + * world.winDB.v_screen_offset to zero. */ extern void save_interface_conf(); extern void load_interface_conf();