From 12a92c2ff084750e056484ecbee5c9434c386ce8 Mon Sep 17 00:00:00 2001 From: Tom Gilbert Date: Wed, 3 Nov 1999 15:02:45 +0000 Subject: [PATCH] Wed Nov 3 23:58:36 GMT 1999 (gilbertt) More late-night coding for Tom ;-) The trouble with using a .1f format string for something which will accept a < 0.1 value, is that the value is written as 0.0 This is clearly not a good idea, and led to an interesting 5 minute bug-hunt. Time for sleep. SVN revision: 1166 --- ChangeLog | 11 +++++++++++ epplets/E-ScreenShoot.c | 8 ++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3e45420..0080eaa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -233,3 +233,14 @@ Tue Nov 2 18:28:36 PST 1999 (KainX) A new cloak mode for E-ScreenShoot...random! You can guess what it does. + +------------------------------------------------------------------------------- + +Wed Nov 3 23:58:36 GMT 1999 +(gilbertt) + +More late-night coding for Tom ;-) +The trouble with using a .1f format string for something which will +accept a < 0.1 value, is that the value is written as 0. +This is clearly not a good idea, and led to an interesting 5 minutes +bug-hunt. diff --git a/epplets/E-ScreenShoot.c b/epplets/E-ScreenShoot.c index d240b4e..5c274c8 100644 --- a/epplets/E-ScreenShoot.c +++ b/epplets/E-ScreenShoot.c @@ -52,13 +52,13 @@ save_config (void) Epplet_modify_config ("QUALITY", buf); sprintf (buf, "%d", opt.win); Epplet_modify_config ("WIN_AREA", buf); - sprintf (buf, "%.1f", opt.delay); + sprintf (buf, "%.2f", opt.delay); Epplet_modify_config ("SHOT_DELAY", buf); - sprintf (buf, "%.1f", opt.cloak_delay); + sprintf (buf, "%.2f", opt.cloak_delay); Epplet_modify_config ("CLOAK_DELAY", buf); - sprintf (buf, "%.1f", opt.draw_interval); + sprintf (buf, "%.2f", opt.draw_interval); Epplet_modify_config ("DRAW_INTERVAL", buf); - sprintf (buf, "%.1f", opt.rand_delay); + sprintf (buf, "%.2f", opt.rand_delay); Epplet_modify_config ("RAND_DELAY", buf); sprintf (buf, "%d", opt.do_cloak); Epplet_modify_config ("DO_CLOAK", buf);