summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsabetts <sabetts>2003-01-26 03:13:22 +0000
committersabetts <sabetts>2003-01-26 03:13:22 +0000
commit55fd7deba361f79d666c56e36765d5e03320acc4 (patch)
treed23f8e4d49448b6be8d11794afac60b74c2eec18
parent3a3cdd1597facb0045400f47f3286bef455f92aa (diff)
downloadratpoison-55fd7deba361f79d666c56e36765d5e03320acc4.zip
(cmd_rudeness): rudeness data correctly stored in rudeness
variables.
-rw-r--r--ChangeLog2
-rw-r--r--src/actions.c8
2 files changed, 6 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 80de8bf..b56cd6d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,8 @@
non-interactively.
(cmd_defwaitcursor): error message correctly shows what command
the error occurred in.
+ (cmd_rudeness): rudeness data correctly stored in rudeness
+ variables.
2002-12-11 Shawn <sabetts@sfu.ca>
diff --git a/src/actions.c b/src/actions.c
index bb5a36b..18d6c4b 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -1618,10 +1618,10 @@ cmd_rudeness (int interactive, void *data)
return NULL;
}
- rp_honour_transient_raise = num & 1;
- rp_honour_normal_raise = num & 2;
- rp_honour_transient_map = num & 4;
- rp_honour_normal_map = num & 8;
+ rp_honour_transient_raise = num & 1 ? 1 : 0;
+ rp_honour_normal_raise = num & 2 ? 1 : 0;
+ rp_honour_transient_map = num & 4 ? 1 : 0;
+ rp_honour_normal_map = num & 8 ? 1 : 0;
return NULL;
}