Refactored getting boolean preferences

This commit is contained in:
James Booth
2013-02-03 02:35:04 +00:00
parent 0030ae5890
commit ca26452af6
7 changed files with 207 additions and 195 deletions

View File

@@ -121,11 +121,11 @@ inp_get_char(char *input, int *size)
in_command = TRUE;
}
if (prefs_get_states()) {
if (prefs_get_boolean(PREF_STATES)) {
if (result == ERR) {
prof_handle_idle();
}
if (prefs_get_outtype() && (result != ERR) && !in_command
if (prefs_get_boolean(PREF_OUTTYPE) && (result != ERR) && !in_command
&& _printable(ch)) {
prof_handle_activity();
}